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
|
|
|
|
|
|
|
source hack/make/.integration-test-helpers
|
|
|
|
|
2019-07-29 22:00:55 +00: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 22:00:55 +00:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2017-05-23 20:32:34 +00:00
|
|
|
(
|
2019-08-07 17:57:52 +00:00
|
|
|
env
|
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
|
|
|
|
|
2018-12-22 19:18:33 +00:00
|
|
|
testexit=0
|
2020-03-03 03:27:49 +00:00
|
|
|
(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
|
2017-05-23 20:32:34 +00:00
|
|
|
|
2020-05-27 14:29:00 +00:00
|
|
|
echo exiting test-integration
|
|
|
|
set -x
|
2018-12-22 19:18:33 +00:00
|
|
|
exit ${testexit}
|
2017-05-23 20:32:34 +00:00
|
|
|
|
|
|
|
) 2>&1 | tee -a "$DEST/test.log"
|