mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/semaphore.test.bash: update
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
b5dc2266a6
commit
ad7db2bb1e
@ -5,17 +5,34 @@ if ! [[ "$0" =~ "tests/semaphore.test.bash" ]]; then
|
|||||||
exit 255
|
exit 255
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TEST_SUFFIX=$(date +%s | base64 | head -c 15)
|
<<COMMENT
|
||||||
|
# amd64-e2e
|
||||||
|
bash tests/semaphore.test.bash
|
||||||
|
|
||||||
TEST_OPTS="PASSES='build release e2e' MANUAL_VER=v3.2.17"
|
# 386-e2e
|
||||||
if [ "$TEST_ARCH" == "386" ]; then
|
TEST_ARCH=386 bash tests/semaphore.test.bash
|
||||||
|
|
||||||
|
# grpc-proxy
|
||||||
|
TEST_OPTS="PASSES='build grpcproxy'" bash tests/semaphore.test.bash
|
||||||
|
|
||||||
|
# coverage
|
||||||
|
TEST_OPTS="coverage" bash tests/semaphore.test.bash
|
||||||
|
COMMENT
|
||||||
|
|
||||||
|
if [ -z "${TEST_OPTS}" ]; then
|
||||||
|
TEST_OPTS="PASSES='build release e2e' MANUAL_VER=v3.2.22"
|
||||||
|
fi
|
||||||
|
if [ "${TEST_ARCH}" == "386" ]; then
|
||||||
TEST_OPTS="GOARCH=386 PASSES='build e2e'"
|
TEST_OPTS="GOARCH=386 PASSES='build e2e'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker run \
|
echo "Running tests with" ${TEST_OPTS}
|
||||||
--rm \
|
if [ "${TEST_OPTS}" == "PASSES='build grpcproxy'" ]; then
|
||||||
--volume=`pwd`:/go/src/github.com/coreos/etcd \
|
echo "Skip proxy tests for this branch!"
|
||||||
gcr.io/etcd-development/etcd-test:go1.8.7 \
|
exit 0
|
||||||
/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
|
elif [ "${TEST_OPTS}" == "coverage" ]; then
|
||||||
|
echo "Skip coverage tests for this branch!"
|
||||||
! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log
|
exit 0
|
||||||
|
else
|
||||||
|
sudo HOST_TMP_DIR=/tmp TEST_OPTS="${TEST_OPTS}" make docker-test
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user