2017-05-23 20:32:34 +00:00
|
|
|
#!/usr/bin/env bash
|
2017-08-30 16:01:01 +00:00
|
|
|
set -e -o pipefail
|
2017-05-23 20:32:34 +00:00
|
|
|
|
2017-06-17 00:18:44 +00:00
|
|
|
source "${MAKEDIR}/.go-autogen"
|
2017-05-23 20:32:34 +00:00
|
|
|
source hack/make/.integration-test-helpers
|
|
|
|
|
|
|
|
(
|
2017-07-06 21:20:41 +00:00
|
|
|
build_test_suite_binaries
|
2017-05-23 20:32:34 +00:00
|
|
|
bundle .integration-daemon-start
|
|
|
|
bundle .integration-daemon-setup
|
|
|
|
|
2017-07-06 21:20:41 +00:00
|
|
|
local testexit=0
|
|
|
|
( repeat run_test_integration ) || testexit=$?
|
2017-05-23 20:32:34 +00:00
|
|
|
|
2017-07-06 21:20:41 +00:00
|
|
|
# Always run cleanup, even if the subshell fails
|
2017-05-23 20:32:34 +00:00
|
|
|
bundle .integration-daemon-stop
|
2017-07-06 21:20:41 +00:00
|
|
|
cleanup_test_suite_binaries
|
|
|
|
error_on_leaked_containerd_shims
|
2017-05-23 20:32:34 +00:00
|
|
|
|
2017-07-06 21:20:41 +00:00
|
|
|
exit $testexit
|
2017-05-23 20:32:34 +00:00
|
|
|
|
|
|
|
) 2>&1 | tee -a "$DEST/test.log"
|