github.com/sbward/docker@v1.4.2-0.20150114010528-c9dab702bed3/project/make/test-integration-cli (about) 1 #!/bin/bash 2 set -e 3 4 DEST=$1 5 6 bundle_test_integration_cli() { 7 go_test_dir ./integration-cli 8 } 9 10 # subshell so that we can export PATH without breaking other things 11 ( 12 source "$(dirname "$BASH_SOURCE")/.integration-daemon-start" 13 14 # pull the busybox image before running the tests 15 sleep 2 16 17 source "$(dirname "$BASH_SOURCE")/.ensure-busybox" 18 19 bundle_test_integration_cli 20 21 source "$(dirname "$BASH_SOURCE")/.integration-daemon-stop" 22 ) 2>&1 | tee -a $DEST/test.log