ctest
Hi @alainm
I am afraid I do not understand how one runs ctest on lunarc.
This is my set up now:
ml load intel/2017b
ml load Boost/1.65.1
ml load CMake/3.9.1
ml load Python/2.7.14
ml list
git pull
mkdir build
cd build
export CC=icc
export CXX=icpc
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8
Now it is ctest time!
How did you do this on lunarc?
I tried this (output form stdout, with sbatch script first). Bu I guess is the wrong way!
#!/bin/sh
#SBATCH -J Boosttest
#SBATCH -t 0:30:00
#SBATCH -o std_%j.out
#SBATCH -e std_%j.err
#SBATCH -A snic2017-11-47
#SBATCH -N 1
#SBATCH -n 4
#SBATCH --qos=test
#
cat $0
#
# LOAD MODULES
ml load intel/2017b
ml load Boost/1.65.1
ml load CMake/3.9.1
ml load Python/2.7.14
ml list
#
ctest -I 1,10
Test project /home/michiel/fargOCA/build
Start 1: test_adim_value
1/10 Test #1: test_adim_value .................. Passed 0.03 sec
Start 2: hasBoostMPI1
2/10 Test #2: hasBoostMPI1 .....................***Failed 0.32 sec
Start 3: hasBoostMPI4
3/10 Test #3: hasBoostMPI4 ..................... Passed 0.32 sec
Start 4: testIOLib1
4/10 Test #4: testIOLib1 .......................***Failed 0.08 sec
Start 5: testIOLib4
5/10 Test #5: testIOLib4 ....................... Passed 0.30 sec
Start 6: testArrIO
6/10 Test #6: testArrIO ........................ Passed 0.02 sec
Start 7: gridIOTest
7/10 Test #7: gridIOTest .......................***Failed 0.03 sec
Start 8: checkBoard5_199
8/10 Test #8: checkBoard5_199 ..................***Failed 2.23 sec
Start 9: checkBoard5_200
9/10 Test #9: checkBoard5_200 ..................***Failed 2.05 sec
Start 10: checkBoard5_201
10/10 Test #10: checkBoard5_201 ..................***Failed 2.04 sec
40% tests passed, 6 tests failed out of 10
Total Test time (real) = 7.46 sec
The following tests FAILED:
2 - hasBoostMPI1 (Failed)
4 - testIOLib1 (Failed)
7 - gridIOTest (Failed)
8 - checkBoard5_199 (Failed)
9 - checkBoard5_200 (Failed)
10 - checkBoard5_201 (Failed)
I also tried the script tools/dev/slurmTest.sh
where I used the licallo cluster set up, but changed the line to sbatch --job-name=fargotest --output="fargotest-%u-%A-%a.out" --exclusive --nodes=1 --array="0-$i" --time=5 -A snic2017-11-47 /home/michiel/fargOCA/build/tools/dev/test.slurm
But there I get issues with the modules fargotest-michiel-447204-0.out
RUNNING /home/michiel/fargOCA/build/test_list.0
Lmod has detected the following error: The following module(s) are unknown:
"userspace/170135"
Please check the spelling or version number. Also try "module spider ..."
Lmod has detected the following error: The following module(s) are unknown:
"intel/compiler/64/2017.4.196"
Please check the spelling or version number. Also try "module spider ..."
Lmod has detected the following error: The following module(s) are unknown:
"intel/mpi/64/2017.4.196"
Please check the spelling or version number. Also try "module spider ..."
Lmod has detected the following error: The following module(s) are unknown:
"cmake"
Please check the spelling or version number. Also try "module spider ..."
Lmod has detected the following error: The following module(s) are unknown:
"python/3.6.3_anaconda3"
Please check the spelling or version number. Also try "module spider ..."
RUNNING TEST on au136
/home/michiel/fargOCA/build/test_list.0: line 14: ctest: command not found
So any tips on how you ran ctest would be very helpful :)!
Best, Michiel