aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/tests/test.sh
diff options
context:
space:
mode:
authorGravatar Bo Yang <teboring@google.com>2016-09-15 19:04:11 +0000
committerGravatar Bo Yang <teboring@google.com>2016-09-15 17:59:49 -0700
commitc6fa9c71a5bfa486916401a0b60df1bdcecda380 (patch)
tree81f9b7db8f59e65ad26e9ef57c20b51cc6f61545 /php/tests/test.sh
parentf174d363805165cc141e4cd68256bddce6a60122 (diff)
Auto-generate proto files for tests.
Diffstat (limited to 'php/tests/test.sh')
-rwxr-xr-xphp/tests/test.sh15
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 )