Add conformance test for php (#2655)
diff --git a/tests.sh b/tests.sh
index 9e04bd6..4ac882a 100755
--- a/tests.sh
+++ b/tests.sh
@@ -405,17 +405,26 @@
cp -r /usr/local/vendor-5.5 vendor
./vendor/bin/phpunit
popd
+ pushd conformance
+ make test_php
+ popd
}
build_php5.5_c() {
use_php 5.5
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php5.5_zts_c() {
use_php_zts 5.5
wget https://phar.phpunit.de/phpunit-old.phar -O /usr/bin/phpunit
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php5.5_32() {
@@ -425,12 +434,19 @@
cp -r /usr/local/vendor-5.5 vendor
./vendor/bin/phpunit
popd
+ # TODO(teboring): Add conformance test.
+ # pushd conformance
+ # make test_php
+ # popd
}
build_php5.5_c_32() {
use_php_bc 5.5
wget https://phar.phpunit.de/phpunit-old.phar -O /usr/bin/phpunit
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php5.6() {
@@ -440,11 +456,17 @@
cp -r /usr/local/vendor-5.6 vendor
./vendor/bin/phpunit
popd
+ pushd conformance
+ make test_php
+ popd
}
build_php5.6_c() {
use_php 5.6
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php5.6_mac() {
@@ -466,6 +488,9 @@
# Test
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php7.0() {
@@ -475,11 +500,17 @@
cp -r /usr/local/vendor-7.0 vendor
./vendor/bin/phpunit
popd
+ pushd conformance
+ make test_php
+ popd
}
build_php7.0_c() {
use_php 7.0
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php_all() {