2017-10-24 02:07:51 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
TEST_SUFFIX=$(date +%s | base64 | head -c 15)
|
|
|
|
|
2018-02-08 20:47:17 +03:00
|
|
|
TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional' MANUAL_VER=v3.3.0"
|
2017-10-24 02:07:51 +03:00
|
|
|
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 \
|
2018-02-08 20:47:17 +03:00
|
|
|
gcr.io/etcd-development/etcd-test:go1.9.4 \
|
2017-10-24 02:07:51 +03:00
|
|
|
/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
|
|
|
|
|
2017-12-08 01:35:41 +03:00
|
|
|
! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-${TEST_SUFFIX}.log
|