Unable to make test for Abinit 8.0.6  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
sheng
Posts: 64
Joined: Fri Apr 11, 2014 3:44 pm

Unable to make test for Abinit 8.0.6

Post by sheng » Thu Jun 02, 2016 4:59 am

Dear all,

As per title I am unable to make test for the newest Abinit 8.0.6. In the ~abinit/test subdirectory, this is what I get when trying to make some tests:

Code: Select all

[sheng@comsics tests]$ ./runtests.py 
Traceback (most recent call last):
  File "./runtests.py", line 33, in <module>
    import tests
  File "/home/sheng/Desktop/program/Abinit/abinit-8.0.6/tests/__init__.py", line 792, in <module>
    abitests = AbinitTests()
  File "/home/sheng/Desktop/program/Abinit/abinit-8.0.6/tests/__init__.py", line 462, in __init__
    self._suites[suite_name] = Suite(suite_path)
  File "/home/sheng/Desktop/program/Abinit/abinit-8.0.6/tests/__init__.py", line 128, in __init__
    module = imp.load_source(module_name, os.path.join(suite_path, "__init__.py") )
IOError: [Errno 2] No such file or directory


Code: Select all

[sheng@comsics tests]$ ./runtests.py fast
Traceback (most recent call last):
  File "./runtests.py", line 33, in <module>
    import tests
  File "/home/sheng/Desktop/program/Abinit/abinit-8.0.6/tests/__init__.py", line 792, in <module>
    abitests = AbinitTests()
  File "/home/sheng/Desktop/program/Abinit/abinit-8.0.6/tests/__init__.py", line 462, in __init__
    self._suites[suite_name] = Suite(suite_path)
  File "/home/sheng/Desktop/program/Abinit/abinit-8.0.6/tests/__init__.py", line 128, in __init__
    module = imp.load_source(module_name, os.path.join(suite_path, "__init__.py") )
IOError: [Errno 2] No such file or directory


This used to work for all the previous versions, and there should be no different to the procedure from what I read from newest online installation notes.

Thank you.

Jordan
Posts: 282
Joined: Tue May 07, 2013 9:47 am

Re: Unable to make test for Abinit 8.0.6

Post by Jordan » Thu Jun 02, 2016 10:06 am

Hi,

Indeed, a bug has been identified and will be fixed very soon.
Meanwhile you can style run make tests_in to run some tests.

Stay tuned !

Cheers

Jordan

User avatar
gmatteo
Posts: 291
Joined: Sun Aug 16, 2009 5:40 pm

Re: Unable to make test for Abinit 8.0.6  [SOLVED]

Post by gmatteo » Thu Jun 02, 2016 1:04 pm

To fix this problem in version 8.0.6, one has to change the file ~abinit/tests/__init__.py
by commenting the string "bigdft_paral" at line 84. See diff below.


=== modified file 'tests/__init__.py'
--- tests/__init__.py 2016-04-23 10:05:44 +0000
+++ tests/__init__.py 2016-05-30 22:34:57 +0000
@@ -81,7 +81,7 @@
#"abirules",
"atompaw",
"bigdft",
- "bigdft_paral",
+ #"bigdft_paral",
#"buildsys",
"built-in",
#"cpu", This directory is disabled

Locked