mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
semaphore.sh: move to "tests/semaphore.test.bash"
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
0e7f1100e3
commit
774f6652df
@ -1,16 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
TEST_SUFFIX=$(date +%s | base64 | head -c 15)
|
|
||||||
|
|
||||||
TEST_OPTS="PASSES='build unit release integration_e2e functional' MANUAL_VER=v3.3.3"
|
|
||||||
if [ "$TEST_ARCH" == "386" ]; then
|
|
||||||
TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--rm \
|
|
||||||
--volume=`pwd`:/go/src/github.com/coreos/etcd \
|
|
||||||
gcr.io/etcd-development/etcd-test:go1.10.1 \
|
|
||||||
/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
|
|
||||||
|
|
||||||
! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log
|
|
21
tests/semaphore.test.bash
Executable file
21
tests/semaphore.test.bash
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if ! [[ "$0" =~ "tests/semaphore.test.bash" ]]; then
|
||||||
|
echo "must be run from repository root"
|
||||||
|
exit 255
|
||||||
|
fi
|
||||||
|
|
||||||
|
TEST_SUFFIX=$(date +%s | base64 | head -c 15)
|
||||||
|
|
||||||
|
TEST_OPTS="PASSES='build unit release integration_e2e functional' MANUAL_VER=v3.3.3"
|
||||||
|
if [ "$TEST_ARCH" == "386" ]; then
|
||||||
|
TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--volume=`pwd`:/go/src/github.com/coreos/etcd \
|
||||||
|
gcr.io/etcd-development/etcd-test:go1.10.1 \
|
||||||
|
/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
|
||||||
|
|
||||||
|
! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log
|
Loading…
x
Reference in New Issue
Block a user