Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
524 B
22 lines
524 B
5 years ago
|
#!/bin/bash
|
||
|
#
|
||
|
# Build file to set up and run tests
|
||
|
|
||
|
set -ex # exit immediately on error
|
||
|
|
||
|
# Change to repo root
|
||
|
cd $(dirname $0)/../../..
|
||
|
|
||
|
./tests.sh cpp_distcheck
|
||
|
|
||
|
# Run tests under release docker image.
|
||
|
DOCKER_IMAGE_NAME=protobuf/protoc_$(sha1sum protoc-artifacts/Dockerfile | cut -f1 -d " ")
|
||
|
until docker pull $DOCKER_IMAGE_NAME; do sleep 10; done
|
||
|
|
||
|
docker run -v $(pwd):/var/local/protobuf --rm $DOCKER_IMAGE_NAME \
|
||
|
bash -l /var/local/protobuf/tests.sh cpp || FAILED="true"
|
||
|
|
||
|
if [ "$FAILED" = "true" ]; then
|
||
|
exit 1
|
||
|
fi
|