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