mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
added Scripts/test.sh (#2243)
* added Scripts/test.sh * added optional build dir parameter
This commit is contained in:
committed by
Greg Landrum
parent
6558905b73
commit
645642a9f5
22
Scripts/test.sh
Executable file
22
Scripts/test.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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}
|
||||
Reference in New Issue
Block a user