aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-03-08 14:31:34 -0800
committerGitHub <noreply@github.com>2017-03-08 14:31:34 -0800
commitdd8d5f57d7068080283c2c03af01d806efbe6cf4 (patch)
treecbb2cb26804889ddfe61094044faaa6be4a47a12 /tests.sh
parent2b7430d96aeff2bb624c8d52182ff5e4b9f7f18a (diff)
downloadprotobuf-dd8d5f57d7068080283c2c03af01d806efbe6cf4.tar.gz
protobuf-dd8d5f57d7068080283c2c03af01d806efbe6cf4.tar.bz2
protobuf-dd8d5f57d7068080283c2c03af01d806efbe6cf4.zip
Rename encode/decode to serializeToString/mergeFromString (#2795)
This better shows the semantic of the API. For already setted fields, mergeFromString do replacement for singular fields and appending for repeated fields.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/tests.sh b/tests.sh
index 981d20cc..2553df71 100755
--- a/tests.sh
+++ b/tests.sh
@@ -402,7 +402,14 @@ use_php_bc() {
}
build_php5.5() {
- use_php 5.5
+ PHP=`which php`
+ PHP_CONFIG=`which php-config`
+ PHPIZE=`which phpize`
+ ln -sfn "/usr/local/php-5.5/bin/php" $PHP
+ ln -sfn "/usr/local/php-5.5/bin/php-config" $PHP_CONFIG
+ ln -sfn "/usr/local/php-5.5/bin/phpize" $PHPIZE
+ generate_php_test_proto
+
pushd php
rm -rf vendor
cp -r /usr/local/vendor-5.5 vendor
@@ -415,7 +422,15 @@ build_php5.5() {
}
build_php5.5_c() {
- use_php 5.5
+ PHP=`which php`
+ PHP_CONFIG=`which php-config`
+ PHPIZE=`which phpize`
+ ln -sfn "/usr/local/php-5.5/bin/php" $PHP
+ ln -sfn "/usr/local/php-5.5/bin/php-config" $PHP_CONFIG
+ ln -sfn "/usr/local/php-5.5/bin/phpize" $PHPIZE
+ generate_php_test_proto
+ 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