ADD: added new version of protobuf

This commit is contained in:
Henry Winkel
2022-12-20 10:09:28 +01:00
parent 4a79559129
commit 1e2b3dda7b
1513 changed files with 123720 additions and 83381 deletions

View File

@@ -27,8 +27,6 @@ function run_test() {
set -ex
PROTOC=$(realpath ${2:-../../../bazel-bin/protoc})
# Change to the script's directory.
cd $(dirname $0)
@@ -47,7 +45,7 @@ OLD_VERSION_PROTOC=https://repo1.maven.org/maven2/com/google/protobuf/protoc/$OL
echo "Running compatibility tests with $OLD_VERSION"
# Check protoc
[ -f $PROTOC ] || {
[ -f ../../../src/protoc ] || {
echo "[ERROR]: Please build protoc first."
exit 1
}
@@ -70,12 +68,12 @@ run_test "./old_protoc" "./old_protoc"
# Test A.2:
# proto set 1: use new version
# proto set 2 which may import protos in set 1: use old version
run_test "$PROTOC" "./old_protoc"
run_test "../../../src/protoc" "./old_protoc"
# Test A.3:
# proto set 1: use old version
# proto set 2 which may import protos in set 1: use new version
run_test "./old_protoc" "$PROTOC"
run_test "./old_protoc" "../../../src/protoc"
rm old_protoc
rm keys -r