xref: /aosp_15_r20/external/protobuf/ruby/compatibility_tests/v3.0.0/test.sh (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1#!/bin/bash
2
3set -ex
4
5# Change to the script's directory
6cd $(dirname $0)
7
8# Download 3.0.0 version of protoc
9PROTOC_BINARY_NAME="protoc-3.0.0-linux-x86_64.exe"
10if [ `uname` = "Darwin" ]; then
11  PROTOC_BINARY_NAME="protoc-3.0.0-osx-x86_64.exe"
12fi
13wget https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/${PROTOC_BINARY_NAME} -O protoc
14chmod +x protoc
15
16# Run tests
17RUBYLIB=../../lib:. rake test
18