diff options
author | valmat <ufabiz@gmail.com> | 2014-03-19 17:26:11 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-19 17:26:11 +0600 |
commit | cfc04aa191dd23b3e61ba4d714a194a3a4dd08f3 (patch) | |
tree | 1be33441fbb85b009f647b306bcabc5382c5a882 /tests/test.sh | |
parent | 778561e1739a4a7ef20e85b713b4790e6be225d3 (diff) |
Fixed issues #46
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-x | tests/test.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test.sh b/tests/test.sh index f055b43..b7e2406 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -92,7 +92,7 @@ fi TEST_FILES=`find ./php/phpt -type f -name "*.phpt"` #RUN_SCR="$PHP_BIN -z ./cpp/$EXT_NAME" -RUN_SCR="$PHP_BIN -d enable_dl=On -d extension_dir=./ext_dir -d extension=$EXT_NAME" +RUN_SCR="$PHP_BIN -d enable_dl=On -d extension_dir=$PWD/ext_dir -d extension=$EXT_NAME" # Create a local copy of the directory with the extension for run without installation @@ -107,6 +107,12 @@ if [ 1 = $COMPILE_EXT ]; then fi + +LD_LIBRARY_PATH="$(cd $PWD/.. && echo $PWD):${LD_LIBRARY_PATH}" +export LD_LIBRARY_PATH +echo $LD_LIBRARY_PATH + +RUN_SCR="LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\" && export LD_LIBRARY_PATH && $RUN_SCR" # run tests $PHP_BIN run-tests.php $SCR_OPT -p "$RUN_SCR" $TEST_FILES |