Merge pull request #19758 from HannahShiSFB/test_sh_comment_out

PHP: modify php unit test script to allow skipping certain tests
pull/19622/head
Stanley Cheung 6 years ago committed by GitHub
commit 0df8b8d012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/php/bin/run_tests.sh

@ -25,8 +25,18 @@ export DYLD_LIBRARY_PATH=$root/libs/$CONFIG
$(which php) $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
--exclude-group persistent_list_bound_tests ../tests/unit_tests
$(which php) $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
../tests/unit_tests/PersistentChannelTests
for arg in "$@"
do
if [[ "$arg" == "--skip-persistent-channel-tests" ]]; then
SKIP_PERSISTENT_CHANNEL_TESTS=true
break
fi
done
if [[ "$SKIP_PERSISTENT_CHANNEL_TESTS" != "true" ]]; then
$(which php) $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
../tests/unit_tests/PersistentChannelTests
fi
export ZEND_DONT_UNLOAD_MODULES=1
export USE_ZEND_ALLOC=0

Loading…
Cancel
Save