Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: third_party/protobuf/php/tests/test.sh

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698