Pickup wherever phpunit is installed

pull/92/head
Craig Tiller 10 years ago
parent e3ccd8f79d
commit c2e80bfbd0
  1. 6
      src/php/bin/run_tests.sh

@ -1,17 +1,17 @@
#!/bin/sh #!/bin/sh
# Loads the local shared library, and runs all of the test cases in tests/ # Loads the local shared library, and runs all of the test cases in tests/
# against it # against it
set -ex set -e
cd $(dirname $0) cd $(dirname $0)
default_extension_dir=`php -i | grep extension_dir | sed 's/.*=> //g'` default_extension_dir=`php -i | grep extension_dir | sed 's/.*=> //g'`
# sym-link in system supplied extensions # sym-link in system supplied extensions
for f in $default_extension_dir/*.so for f in $default_extension_dir/*.so
do do
ln -s $f ../ext/grpc/modules/$(basename $f) || true ln -s $f ../ext/grpc/modules/$(basename $f) &> /dev/null || true
done done
php \ php \
-d extension_dir=../ext/grpc/modules/ \ -d extension_dir=../ext/grpc/modules/ \
-d extension=grpc.so \ -d extension=grpc.so \
phpunit -v --debug --strict ../tests/unit_tests `which phpunit` -v --debug --strict ../tests/unit_tests

Loading…
Cancel
Save