From e0e54661f76183684dca66694967a60cbb10f04e Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 15 Sep 2016 11:09:01 -0700 Subject: Check in php implementation. (#2052) This pull request includes two implementation: C extension and PHP package. Both implementations support encode/decode of singular, repeated and map fields. --- php/tests/test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 php/tests/test.sh (limited to 'php/tests/test.sh') diff --git a/php/tests/test.sh b/php/tests/test.sh new file mode 100755 index 00000000..52833edb --- /dev/null +++ b/php/tests/test.sh @@ -0,0 +1,23 @@ +#!/bin/bash +cd ../ext/google/protobuf/ +make clean +set -e + +phpize && ./configure --enable-debug CFLAGS='-g -O0' && make +cd - + +tests=( array_test.php encode_decode_test.php generated_class_test.php map_field_test.php ) + +for t in "${tests[@]}" +do + echo "****************************" + echo "* $t" + echo "****************************" + php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` $t + echo "" +done + +# Make sure to run the memory test in debug mode. +php -dextension=../ext/google/protobuf/modules/protobuf.so memory_leak_test.php + +USE_ZEND_ALLOC=0 valgrind --leak-check=yes php -dextension=../ext/google/protobuf/modules/protobuf.so memory_leak_test.php -- cgit v1.2.3