diff options
author | Gergely Risko <gergely+context@risko.hu> | 2009-09-16 11:58:22 +0300 |
---|---|---|
committer | Gergely Risko <gergely+context@risko.hu> | 2009-09-16 11:58:22 +0300 |
commit | cc47f435176bf7c1dd74b6b7bee5f299cd178f1a (patch) | |
tree | 74eb29dedbd666bc912cb4cfa92081b820903607 /libcontextsubscriber | |
parent | 34f6c51234261a8c88b56d99c07e18fa75b47764 (diff) |
libcontextsubscriber/customer-tests: separated environment from runTests.sh
So it can be easily sourced from your shell for debugging.
Diffstat (limited to 'libcontextsubscriber')
-rw-r--r-- | libcontextsubscriber/customer-tests/env.sh | 6 | ||||
-rwxr-xr-x | libcontextsubscriber/customer-tests/runTests.sh | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/libcontextsubscriber/customer-tests/env.sh b/libcontextsubscriber/customer-tests/env.sh new file mode 100644 index 00000000..31a65d57 --- /dev/null +++ b/libcontextsubscriber/customer-tests/env.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +export PYTHONPATH="`pwd`/common/" +export CONTEXT_PROVIDERS=. +export LD_LIBRARY_PATH=../../src/.libs:../../../libcontextprovider/src/.libs +export PATH=$PATH:../../../python:../../cli:../../reg-cli diff --git a/libcontextsubscriber/customer-tests/runTests.sh b/libcontextsubscriber/customer-tests/runTests.sh index 2015357b..c723a495 100755 --- a/libcontextsubscriber/customer-tests/runTests.sh +++ b/libcontextsubscriber/customer-tests/runTests.sh @@ -2,13 +2,10 @@ cd $(dirname $0) DIRS="commander subscription asynchronicity registry pluginchanging" -export PYTHONPATH="`pwd`/common/" +. ./env.sh if pkg-config contextprovider-1.0 || [ -e ../../libcontextprovider/src/.libs/libcontextprovider.so ] then - export CONTEXT_PROVIDERS=. - export LD_LIBRARY_PATH=../../src/.libs:../../../libcontextprovider/src/.libs - export PATH=$PATH:../../../python:../../cli:../../reg-cli for dir in $DIRS; do cd $dir |