Page 1 of 1

Abinit 7.6.3 ./runtests.py problem

Posted: Mon May 14, 2018 11:08 am
by ninatorres
I have managed to compile Abinit 7.6.3 with gcc version 4.9.0 on a rocks cluster node. The prefix for the components' libraries (such as Atlas, netcdf etc) is a non-standard library path: /share/apps/...
The program can be successfully executed when called, but error arises when I wish to run ./runtests to verify my compilation:
[sheng@comsics tests]$ ./runtests.py -j 4 fast
-bash: ./runtests.py: No such file or directory
I suspect that I have not added all the needed libraries to the system library paths, any idea on how to fix this? I have already added all the paths for the softwares I choose in configure step.

Re: Abinit 7.6.3 ./runtests.py problem

Posted: Mon May 14, 2018 12:10 pm
by gmatteo

Code: Select all

-bash: ./runtests.py: No such file or directory


This means that runtests.py is not in your current working directory.
The script is located in ~abinit/tests/ where ~abinit is your top level directory.

If you are using a build directory to compile the code, you have to specify the location
of the script with a relative path instead of ./runtests.py

This point is explained at the end of the compilation:

Use the script `runtests.py` located in ~abinit/tests to validate the build
(requires python 2.7 or python >= 3.4)

To get help, cd to ~abinit/tests and issue:

$ ./runtests.py --help

To run the new test suite inside a build directory (e.g. ~abinit/build/tests), use:

$ ../../tests/runtests.py

This will create a directory build/tests/Test_suite with the results of the tests.