1#!/bin/bash 2 3#set -x # DEBUG 4 5# launch the unit tests suite. 6# run this script like this: ./Scripts/test.sh [build_dir] 7# if no build_dir is specified, ./build is assumed to be the default 8# build directory 9 10build_dir="build" 11if [ "$#" -eq 1 ]; then 12 build_dir=$1 13fi 14 15RDBASE=$PWD 16PYTHONPATH=$RDBASE 17LD_LIBRARY_PATH=$RDBASE/lib:$LD_LIBRARY_PATH 18 19# run tests in parallel 20nprocs=`getconf _NPROCESSORS_ONLN` 21 22cd $build_dir && ctest --output-on-failure -j ${nprocs} 23