test.sh 649 B

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