diff options
Diffstat (limited to 'php/tests/test.sh')
-rwxr-xr-x | php/tests/test.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/php/tests/test.sh b/php/tests/test.sh index 52833edb..f3f04a47 100755 --- a/php/tests/test.sh +++ b/php/tests/test.sh @@ -1,10 +1,19 @@ #!/bin/bash -cd ../ext/google/protobuf/ + +# Compile protoc +pushd ../../ +./autogen.sh && ./configure && make +popd + +# Generate test file +../../src/protoc --php_out=. test.proto test_include.proto + +# Compile c extension +pushd ../ext/google/protobuf/ make clean set -e - phpize && ./configure --enable-debug CFLAGS='-g -O0' && make -cd - +popd tests=( array_test.php encode_decode_test.php generated_class_test.php map_field_test.php ) |