aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run_test.sh
blob: 8671ce350314c4763c6f61fb81d4e86be988d76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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=$PYTHONPATH:$2
$3 $4