|
@@ -501,12 +501,6 @@ use_php_zts() {
|
|
generate_php_test_proto
|
|
generate_php_test_proto
|
|
}
|
|
}
|
|
|
|
|
|
-use_php_bc() {
|
|
|
|
- VERSION=$1
|
|
|
|
- export PATH=/usr/local/php-${VERSION}-bc/bin:$PATH
|
|
|
|
- generate_php_test_proto
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
build_php5.5() {
|
|
build_php5.5() {
|
|
use_php 5.5
|
|
use_php 5.5
|
|
|
|
|
|
@@ -523,9 +517,7 @@ build_php5.5() {
|
|
build_php5.5_c() {
|
|
build_php5.5_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php 5.5
|
|
use_php 5.5
|
|
- pushd php/tests
|
|
|
|
- /bin/bash ./test.sh 5.5
|
|
|
|
- popd
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -541,9 +533,7 @@ build_php5.5_mixed() {
|
|
pushd php
|
|
pushd php
|
|
rm -rf vendor
|
|
rm -rf vendor
|
|
composer update
|
|
composer update
|
|
- pushd tests
|
|
|
|
- /bin/bash ./compile_extension.sh 5.5
|
|
|
|
- popd
|
|
|
|
|
|
+ tests/compile_extension.sh
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
}
|
|
}
|
|
@@ -551,7 +541,7 @@ build_php5.5_mixed() {
|
|
build_php5.5_zts_c() {
|
|
build_php5.5_zts_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php_zts 5.5
|
|
use_php_zts 5.5
|
|
- cd php/tests && /bin/bash ./test.sh 5.5-zts && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -577,7 +567,7 @@ build_php5.6() {
|
|
build_php5.6_c() {
|
|
build_php5.6_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php 5.6
|
|
use_php 5.6
|
|
- cd php/tests && /bin/bash ./test.sh 5.6 && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -593,9 +583,7 @@ build_php5.6_mixed() {
|
|
pushd php
|
|
pushd php
|
|
rm -rf vendor
|
|
rm -rf vendor
|
|
composer update
|
|
composer update
|
|
- pushd tests
|
|
|
|
- /bin/bash ./compile_extension.sh 5.6
|
|
|
|
- popd
|
|
|
|
|
|
+ tests/compile_extension.sh
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
}
|
|
}
|
|
@@ -603,7 +591,7 @@ build_php5.6_mixed() {
|
|
build_php5.6_zts_c() {
|
|
build_php5.6_zts_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php_zts 5.6
|
|
use_php_zts 5.6
|
|
- cd php/tests && /bin/bash ./test.sh 5.6-zts && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -633,10 +621,8 @@ build_php5.6_mac() {
|
|
sudo mv valgrind /usr/local/bin/valgrind
|
|
sudo mv valgrind /usr/local/bin/valgrind
|
|
|
|
|
|
# Test
|
|
# Test
|
|
- cd php/tests && /bin/bash ./test.sh && cd ../..
|
|
|
|
- pushd conformance
|
|
|
|
- make test_php_c
|
|
|
|
- popd
|
|
|
|
|
|
+ php/tests/test.sh
|
|
|
|
+ (cd conformance && make test_php_c)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.0() {
|
|
build_php7.0() {
|
|
@@ -646,15 +632,13 @@ build_php7.0() {
|
|
composer update
|
|
composer update
|
|
./vendor/bin/phpunit
|
|
./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
- pushd conformance
|
|
|
|
- make test_php
|
|
|
|
- popd
|
|
|
|
|
|
+ (cd conformance && make test_php)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.0_c() {
|
|
build_php7.0_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php 7.0
|
|
use_php 7.0
|
|
- cd php/tests && /bin/bash ./test.sh 7.0 && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -670,9 +654,7 @@ build_php7.0_mixed() {
|
|
pushd php
|
|
pushd php
|
|
rm -rf vendor
|
|
rm -rf vendor
|
|
composer update
|
|
composer update
|
|
- pushd tests
|
|
|
|
- /bin/bash ./compile_extension.sh 7.0
|
|
|
|
- popd
|
|
|
|
|
|
+ tests/compile_extension.sh
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
}
|
|
}
|
|
@@ -680,7 +662,7 @@ build_php7.0_mixed() {
|
|
build_php7.0_zts_c() {
|
|
build_php7.0_zts_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php_zts 7.0
|
|
use_php_zts 7.0
|
|
- cd php/tests && /bin/bash ./test.sh 7.0-zts && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -710,10 +692,8 @@ build_php7.0_mac() {
|
|
sudo mv valgrind /usr/local/bin/valgrind
|
|
sudo mv valgrind /usr/local/bin/valgrind
|
|
|
|
|
|
# Test
|
|
# Test
|
|
- cd php/tests && /bin/bash ./test.sh && cd ../..
|
|
|
|
- pushd conformance
|
|
|
|
- make test_php_c
|
|
|
|
- popd
|
|
|
|
|
|
+ php/tests/test.sh
|
|
|
|
+ (cd conformance && make test_php_c)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.3_mac() {
|
|
build_php7.3_mac() {
|
|
@@ -737,10 +717,8 @@ build_php7.3_mac() {
|
|
sudo mv valgrind /usr/local/bin/valgrind
|
|
sudo mv valgrind /usr/local/bin/valgrind
|
|
|
|
|
|
# Test
|
|
# Test
|
|
- cd php/tests && /bin/bash ./test.sh && cd ../..
|
|
|
|
- pushd conformance
|
|
|
|
- make test_php_c
|
|
|
|
- popd
|
|
|
|
|
|
+ php/tests/test.sh
|
|
|
|
+ (cd conformance && make test_php_c)
|
|
}
|
|
}
|
|
|
|
|
|
build_php_compatibility() {
|
|
build_php_compatibility() {
|
|
@@ -750,9 +728,7 @@ build_php_compatibility() {
|
|
|
|
|
|
build_php_multirequest() {
|
|
build_php_multirequest() {
|
|
use_php 7.4
|
|
use_php 7.4
|
|
- pushd php/tests
|
|
|
|
- ./multirequest.sh
|
|
|
|
- popd
|
|
|
|
|
|
+ php/tests/multirequest.sh
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.1() {
|
|
build_php7.1() {
|
|
@@ -762,15 +738,13 @@ build_php7.1() {
|
|
composer update
|
|
composer update
|
|
./vendor/bin/phpunit
|
|
./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
- pushd conformance
|
|
|
|
- make test_php
|
|
|
|
- popd
|
|
|
|
|
|
+ (cd conformance && make test_php)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.1_c() {
|
|
build_php7.1_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php 7.1
|
|
use_php 7.1
|
|
- cd php/tests && /bin/bash ./test.sh 7.1 && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -786,9 +760,7 @@ build_php7.1_mixed() {
|
|
pushd php
|
|
pushd php
|
|
rm -rf vendor
|
|
rm -rf vendor
|
|
composer update
|
|
composer update
|
|
- pushd tests
|
|
|
|
- /bin/bash ./compile_extension.sh 7.1
|
|
|
|
- popd
|
|
|
|
|
|
+ tests/compile_extension.sh
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
}
|
|
}
|
|
@@ -796,7 +768,7 @@ build_php7.1_mixed() {
|
|
build_php7.1_zts_c() {
|
|
build_php7.1_zts_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php_zts 7.1
|
|
use_php_zts 7.1
|
|
- cd php/tests && /bin/bash ./test.sh 7.1-zts && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -814,15 +786,13 @@ build_php7.4() {
|
|
composer update
|
|
composer update
|
|
./vendor/bin/phpunit
|
|
./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
- pushd conformance
|
|
|
|
- make test_php
|
|
|
|
- popd
|
|
|
|
|
|
+ (cd conformance && make test_php)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.4_c() {
|
|
build_php7.4_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php 7.4
|
|
use_php 7.4
|
|
- cd php/tests && /bin/bash ./test.sh 7.4 && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -831,9 +801,7 @@ build_php7.4_c() {
|
|
make test_php_c_32
|
|
make test_php_c_32
|
|
fi
|
|
fi
|
|
popd
|
|
popd
|
|
- pushd php/ext/google/protobuf
|
|
|
|
- phpize --clean
|
|
|
|
- popd
|
|
|
|
|
|
+ (cd php/ext/google/protobuf && phpize --clean)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.4_mixed() {
|
|
build_php7.4_mixed() {
|
|
@@ -841,20 +809,16 @@ build_php7.4_mixed() {
|
|
pushd php
|
|
pushd php
|
|
rm -rf vendor
|
|
rm -rf vendor
|
|
composer update
|
|
composer update
|
|
- pushd tests
|
|
|
|
- /bin/bash ./compile_extension.sh 7.4
|
|
|
|
- popd
|
|
|
|
|
|
+ tests/compile_extension.sh
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
|
|
popd
|
|
popd
|
|
- pushd php/ext/google/protobuf
|
|
|
|
- phpize --clean
|
|
|
|
- popd
|
|
|
|
|
|
+ (cd php/ext/google/protobuf && phpize --clean)
|
|
}
|
|
}
|
|
|
|
|
|
build_php7.4_zts_c() {
|
|
build_php7.4_zts_c() {
|
|
IS_64BIT=$1
|
|
IS_64BIT=$1
|
|
use_php_zts 7.4
|
|
use_php_zts 7.4
|
|
- cd php/tests && /bin/bash ./test.sh 7.4-zts && cd ../..
|
|
|
|
|
|
+ php/tests/test.sh
|
|
pushd conformance
|
|
pushd conformance
|
|
if [ "$IS_64BIT" = "true" ]
|
|
if [ "$IS_64BIT" = "true" ]
|
|
then
|
|
then
|
|
@@ -863,9 +827,7 @@ build_php7.4_zts_c() {
|
|
make test_php_c_32
|
|
make test_php_c_32
|
|
fi
|
|
fi
|
|
popd
|
|
popd
|
|
- pushd php/ext/google/protobuf
|
|
|
|
- phpize --clean
|
|
|
|
- popd
|
|
|
|
|
|
+ (cd php/ext/google/protobuf && phpize --clean)
|
|
}
|
|
}
|
|
|
|
|
|
build_php_all_32() {
|
|
build_php_all_32() {
|