test-integration 583 B

123456789101112131415161718192021222324252627
  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. testexit=0
  13. (repeat run_test_integration) || testexit=$?
  14. # Always run cleanup, even if the subshell fails
  15. bundle .integration-daemon-stop
  16. cleanup_test_suite_binaries
  17. echo exiting test-integration
  18. set -x
  19. exit ${testexit}
  20. ) &> >(tee -a "$DEST/test.log")