diff options
author | Bo Yang <teboring@google.com> | 2016-09-15 19:04:11 +0000 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2016-09-15 17:59:49 -0700 |
commit | c6fa9c71a5bfa486916401a0b60df1bdcecda380 (patch) | |
tree | 81f9b7db8f59e65ad26e9ef57c20b51cc6f61545 /php/tests/test.sh | |
parent | f174d363805165cc141e4cd68256bddce6a60122 (diff) | |
download | protobuf-c6fa9c71a5bfa486916401a0b60df1bdcecda380.tar.gz protobuf-c6fa9c71a5bfa486916401a0b60df1bdcecda380.tar.bz2 protobuf-c6fa9c71a5bfa486916401a0b60df1bdcecda380.zip |
Auto-generate proto files for tests.
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 ) |