github.com/fcwu/docker@v1.4.2-0.20150115145920-2a69ca89f0df/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  exec > >(tee -a $DEST/test.log) 2>&1
    12  (
    13  	source "$(dirname "$BASH_SOURCE")/.integration-daemon-start"
    14  
    15  	# pull the busybox image before running the tests
    16  	sleep 2
    17  
    18  	source "$(dirname "$BASH_SOURCE")/.ensure-busybox"
    19  
    20  	bundle_test_integration_cli
    21  
    22  	source "$(dirname "$BASH_SOURCE")/.integration-daemon-stop"
    23  )