aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run_test.sh
blob: 363fae57b653aadc018f53acf2a07326a931a3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# This is a nasty workaround of a CTest limitation
# of setting the environment variables for the test.

# $1: LD_LIBRARY_PATH
# $2: $PYTHONPATH
# $3: python executable
# $4: test file

export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
export PYTHONPATH=$2:$PYTHONPATH
$3 $4