github.com/rawahars/moby@v24.0.4+incompatible/hack/make/test-integration (about)

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