aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-16 14:04:29 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-16 14:04:29 -0800
commitc2e80bfbd0ee80772a4b36e482761e97292e82a4 (patch)
treed814c16b6c07582f4b136ffa03dd62abd410ed16
parente3ccd8f79dc2201fabfeb545de47c53f95248f14 (diff)
Pickup wherever phpunit is installed
-rwxr-xr-xsrc/php/bin/run_tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/php/bin/run_tests.sh b/src/php/bin/run_tests.sh
index c334ad9091..28282c3e37 100755
--- a/src/php/bin/run_tests.sh
+++ b/src/php/bin/run_tests.sh
@@ -1,17 +1,17 @@
#!/bin/sh
# Loads the local shared library, and runs all of the test cases in tests/
# against it
-set -ex
+set -e
cd $(dirname $0)
default_extension_dir=`php -i | grep extension_dir | sed 's/.*=> //g'`
# sym-link in system supplied extensions
for f in $default_extension_dir/*.so
do
- ln -s $f ../ext/grpc/modules/$(basename $f) || true
+ ln -s $f ../ext/grpc/modules/$(basename $f) &> /dev/null || true
done
php \
-d extension_dir=../ext/grpc/modules/ \
-d extension=grpc.so \
- phpunit -v --debug --strict ../tests/unit_tests
+ `which phpunit` -v --debug --strict ../tests/unit_tests