diff options
Diffstat (limited to 'tests/run_test.sh')
-rwxr-xr-x | tests/run_test.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run_test.sh b/tests/run_test.sh new file mode 100755 index 000000000..85058c185 --- /dev/null +++ b/tests/run_test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/python + +# This is a nasty workaround of a CTest limitation +# of setting the environment variables for the test. + +# $1: LD_LIBRARY_PATH +# $2: $PYTHON_PATH +# $3: python executable +# $4: test file + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$1 +export PYTHONPATH=$PYTHON_PATH:$2 +$3 $4 |