forked from rdkit/rdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added Scripts/test.sh * added optional build dir parameter
- Loading branch information
1 parent
6558905
commit 645642a
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |