File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,14 +26,11 @@ requirements:
2626
2727test :
2828 requires :
29+ - cxxtest
2930 - scons
3031
31- commands :
32- # Run unit-test program with the installed shared library.
33- # Make sure tests cannot use library file from the source directory.
34- - scons -C "$SRC_DIR" --clean lib
35- - ALLTESTSFAST=$(ls -t ${SRC_DIR}/build/fast*/tests/alltests | head -1)
36- - " ${ALLTESTSFAST}"
32+ # commands:
33+ # Execute the run_test.sh script.
3734
3835about :
3936 home : https://github.com/diffpy/libdiffpy
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ MYNCPU=$(( (CPU_COUNT > 8 ) ? 8 : CPU_COUNT ))
4+
5+ # Remove unit tests from the build phase.
6+ scons -C " $SRC_DIR " --clean lib alltests
7+
8+ # Build the unit tests program using the installed library.
9+ scons -C " $SRC_DIR " -j $MYNCPU alltests prefix=$PREFIX test_installed=true
10+
11+ # Execute the unit tests.
12+ MYALLTESTSFAST=$( ls -t ${SRC_DIR} /build/fast* /tests/alltests | head -1)
13+ ${MYALLTESTSFAST}
You can’t perform that action at this time.
0 commit comments