test-integration 652 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. set -e -o pipefail
  3. source hack/make/.integration-test-helpers
  4. if [ ! -z "${TEST_SKIP_INTEGRATION}" ] && [ ! -z "${TEST_SKIP_INTEGRATION_CLI}" ]; then
  5. echo integration and integration-cli skipped according to env vars
  6. exit 0
  7. fi
  8. (
  9. env
  10. build_test_suite_binaries
  11. bundle .integration-daemon-start
  12. bundle .integration-daemon-setup
  13. testexit=0
  14. (repeat run_test_integration) || testexit=$?
  15. # Always run cleanup, even if the subshell fails
  16. bundle .integration-daemon-stop
  17. cleanup_test_suite_binaries
  18. error_on_leaked_containerd_shims
  19. echo exiting test-integration
  20. set -x
  21. exit ${testexit}
  22. ) 2>&1 | tee -a "$DEST/test.log"