2017-08-14 15:47:06 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Setup, run and teardown e2e test suite in containers.
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
2018-05-17 07:11:59 -04:00
|
|
|
engine_host=$(./scripts/test/e2e/run setup)
|
2017-08-14 15:47:06 -04:00
|
|
|
testexit=0
|
2017-10-10 17:04:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
test_cmd="test"
|
|
|
|
if [[ -n "${TEST_DEBUG-}" ]]; then
|
|
|
|
test_cmd="shell"
|
|
|
|
fi
|
|
|
|
|
2018-05-17 07:11:59 -04:00
|
|
|
./scripts/test/e2e/run "$test_cmd" "$engine_host" || testexit="$?"
|
2017-10-06 19:11:01 -04:00
|
|
|
|
2018-05-17 07:11:59 -04:00
|
|
|
./scripts/test/e2e/run cleanup
|
2017-08-14 15:47:06 -04:00
|
|
|
exit "$testexit"
|