aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-02-01 12:47:58 -0800
committerGitHub <noreply@github.com>2017-02-01 12:47:58 -0800
commit39756643df2f88805649595e651b719c8f5a4dea (patch)
tree1d40c98484d729fc4bffa722e84e5ca526a859db /tests.sh
parent7f3e23707122f31ebfa58b7280bd56cbe77cb44e (diff)
downloadprotobuf-39756643df2f88805649595e651b719c8f5a4dea.tar.gz
protobuf-39756643df2f88805649595e651b719c8f5a4dea.tar.bz2
protobuf-39756643df2f88805649595e651b719c8f5a4dea.zip
Add conformance test for php (#2655)
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 9e04bd66..4ac882ab 100755
--- a/tests.sh
+++ b/tests.sh
@@ -405,17 +405,26 @@ build_php5.5() {
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 @@ build_php5.5_32() {
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 @@ build_php5.6() {
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 @@ build_php5.6_mac() {
# Test
cd php/tests && /bin/bash ./test.sh && cd ../..
+ pushd conformance
+ make test_php_c
+ popd
}
build_php7.0() {
@@ -475,11 +500,17 @@ build_php7.0() {
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() {