aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorJie Luo <jieluo@google.com>2017-01-23 15:11:00 -0800
committerJie Luo <jieluo@google.com>2017-01-26 11:05:16 -0800
commitea511491009a40360b4891cdc58d2c3f9bdf4481 (patch)
tree4609dbf4b5729075cf066d6bcc77a10c90b6f3c9 /tests.sh
parent140e28d12e5eee856cbe1cac3313399542ec7a5b (diff)
downloadprotobuf-ea511491009a40360b4891cdc58d2c3f9bdf4481.tar.gz
protobuf-ea511491009a40360b4891cdc58d2c3f9bdf4481.tar.bz2
protobuf-ea511491009a40360b4891cdc58d2c3f9bdf4481.zip
Add python compatibility tests against v2.5.0 amd run on Travis.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index ce149bc9..9e04bd66 100755
--- a/tests.sh
+++ b/tests.sh
@@ -62,7 +62,8 @@ build_cpp_distcheck() {
# List all files that should be included in the distribution package.
git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\)" |\
- grep -v ".gitignore" | grep -v "java/compatibility_tests" > dist.lst
+ grep -v ".gitignore" | grep -v "java/compatibility_tests" |\
+ grep -v "python/compatibility_tests" > dist.lst
# Unzip the dist tar file.
DIST=`ls *.tar.gz`
tar -xf $DIST
@@ -311,6 +312,16 @@ build_python_cpp() {
cd ..
}
+build_python_compatibility() {
+ internal_build_cpp
+ # Use the unit-tests extraced from 2.5.0 to test the compatibilty.
+ cd python/compatibility_tests/v2.5.0
+ # Test between 2.5.0 and the current version.
+ ./test.sh 2.5.0
+ # Test between 3.0.0-beta-1 and the current version.
+ ./test.sh 3.0.0-beta-1
+}
+
build_ruby21() {
internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh ruby-2.1 && cd ..
@@ -513,6 +524,7 @@ Usage: $0 { cpp |
objectivec_cocoapods_integration |
python |
python_cpp |
+ python_compatibility |
ruby21 |
ruby22 |
jruby |