Skip to content

Commit

Permalink
added Scripts/test.sh (rdkit#2243)
Browse files Browse the repository at this point in the history
* added Scripts/test.sh

* added optional build dir parameter
  • Loading branch information
UnixJunkie authored and greglandrum committed Mar 22, 2019
1 parent 6558905 commit 645642a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Scripts/test.sh
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 645642a

Please sign in to comment.