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