2017-05-23 16:32:34 -04:00
|
|
|
#!/usr/bin/env bash
|
2017-08-30 12:01:01 -04:00
|
|
|
set -e -o pipefail
|
2017-05-23 16:32:34 -04:00
|
|
|
|
|
|
|
source hack/make/.integration-test-helpers
|
|
|
|
|
2019-07-29 18:00:55 -04:00
|
|
|
if [ ! -z "${TEST_SKIP_INTEGRATION}" ] && [ ! -z "${TEST_SKIP_INTEGRATION_CLI}" ]; then
|
2019-08-07 13:57:52 -04:00
|
|
|
echo integration and integration-cli skipped according to env vars
|
2019-07-29 18:00:55 -04:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2017-05-23 16:32:34 -04:00
|
|
|
(
|
2019-08-07 13:57:52 -04:00
|
|
|
env
|
2017-07-06 17:20:41 -04:00
|
|
|
build_test_suite_binaries
|
2017-05-23 16:32:34 -04:00
|
|
|
bundle .integration-daemon-start
|
|
|
|
bundle .integration-daemon-setup
|
|
|
|
|
2018-12-22 14:18:33 -05:00
|
|
|
testexit=0
|
2017-07-06 17:20:41 -04:00
|
|
|
( repeat run_test_integration ) || testexit=$?
|
2017-05-23 16:32:34 -04:00
|
|
|
|
2017-07-06 17:20:41 -04:00
|
|
|
# Always run cleanup, even if the subshell fails
|
2017-05-23 16:32:34 -04:00
|
|
|
bundle .integration-daemon-stop
|
2017-07-06 17:20:41 -04:00
|
|
|
cleanup_test_suite_binaries
|
|
|
|
error_on_leaked_containerd_shims
|
2017-05-23 16:32:34 -04:00
|
|
|
|
2018-12-22 14:18:33 -05:00
|
|
|
exit ${testexit}
|
2017-05-23 16:32:34 -04:00
|
|
|
|
|
|
|
) 2>&1 | tee -a "$DEST/test.log"
|