Files
rdkit/Scripts/test.sh
Francois Berenger 645642a9f5 added Scripts/test.sh (#2243)
* added Scripts/test.sh

* added optional build dir parameter
2019-03-22 15:58:29 +01:00

23 lines
464 B
Bash
Executable File

#!/bin/bash
#set -x # DEBUG
# launch the unit tests suite.
# run this script like this: ./Scripts/test.sh [build_dir]
# if no build_dir is specified, ./build is assumed to be the default
# build directory
build_dir="build"
if [ "$#" -eq 1 ]; then
build_dir=$1
fi
RDBASE=$PWD
PYTHONPATH=$RDBASE
LD_LIBRARY_PATH=$RDBASE/lib:$LD_LIBRARY_PATH
# run tests in parallel
nprocs=`getconf _NPROCESSORS_ONLN`
cd $build_dir && ctest --output-on-failure -j ${nprocs}