github.com/gogo/protobuf@v1.3.2/conformance/test.sh (about) 1 #!/bin/bash 2 3 PROTOBUF_ROOT=$1 4 CONFORMANCE_ROOT=$1/conformance 5 CONFORMANCE_TEST_RUNNER=$CONFORMANCE_ROOT/conformance-test-runner 6 7 cd $(dirname $0) 8 9 if [[ $PROTOBUF_ROOT == "" ]]; then 10 echo "usage: test.sh <protobuf-root>" >/dev/stderr 11 exit 1 12 fi 13 14 if [[ ! -x $CONFORMANCE_TEST_RUNNER ]]; then 15 echo "SKIP: conformance test runner not installed" >/dev/stderr 16 exit 0 17 fi 18 19 a=$CONFORMANCE_ROOT/conformance.proto 20 b=internal/conformance_proto/conformance.proto 21 if [[ $(diff $a $b) != "" ]]; then 22 cp $a $b 23 echo "WARNING: conformance.proto is out of date" >/dev/stderr 24 fi 25 26 $CONFORMANCE_TEST_RUNNER --failure_list failure_list_go.txt ./conformance.sh