summaryrefslogtreecommitdiffstats
path: root/tests/run_test.sh
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-17 19:31:37 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-17 19:31:37 -0300
commite0c29962e6f334452f0c9db2caaf6ed18065de85 (patch)
treecee27801c196fbcacf6130ad64216af133b555dd /tests/run_test.sh
The End Is the Beginning Is the End
Diffstat (limited to 'tests/run_test.sh')
-rwxr-xr-xtests/run_test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run_test.sh b/tests/run_test.sh
new file mode 100755
index 00000000..ed86ea30
--- /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.
+
+
+LIB_PATH=$LD_LIBRARY_PATH:$1
+PYTHON_PATH=$PYTHONPATH:$2
+PYTHON_EXEC=$3
+TEST_FILE=$4
+
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIB_PATH PYTHONPATH=$PYTHON_PATH $PYTHON_EXEC $TEST_FILE
+