Abinit 7.6.3 ./runtests.py problem

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
ninatorres
Posts: 1
Joined: Mon May 14, 2018 11:06 am

Abinit 7.6.3 ./runtests.py problem

Post by ninatorres » Mon May 14, 2018 11:08 am

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.

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

Re: Abinit 7.6.3 ./runtests.py problem

Post by gmatteo » Mon May 14, 2018 12:10 pm

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.

Locked