| OLD | NEW |
| (Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Generate test file |
| 4 ../../src/protoc --php_out=. test.proto test_include.proto |
| 5 |
| 6 # Compile c extension |
| 7 pushd ../ext/google/protobuf/ |
| 8 make clean |
| 9 set -e |
| 10 phpize && ./configure --enable-debug CFLAGS='-g -O0' && make |
| 11 popd |
| 12 |
| 13 tests=( array_test.php encode_decode_test.php generated_class_test.php map_field
_test.php ) |
| 14 |
| 15 for t in "${tests[@]}" |
| 16 do |
| 17 echo "****************************" |
| 18 echo "* $t" |
| 19 echo "****************************" |
| 20 php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` $t |
| 21 echo "" |
| 22 done |
| 23 |
| 24 # Make sure to run the memory test in debug mode. |
| 25 php -dextension=../ext/google/protobuf/modules/protobuf.so memory_leak_test.php |
| 26 |
| 27 USE_ZEND_ALLOC=0 valgrind --leak-check=yes php -dextension=../ext/google/protobu
f/modules/protobuf.so memory_leak_test.php |
| OLD | NEW |