2014-02-25 18:17:48 +02:00
|
|
|
#!/bin/bash
|
2014-04-07 22:14:19 -06:00
|
|
|
set -e
|
2014-02-25 18:17:48 +02:00
|
|
|
|
|
|
|
DEST=$1
|
|
|
|
|
|
|
|
bundle_test_integration_cli() {
|
|
|
|
go_test_dir ./integration-cli
|
|
|
|
}
|
|
|
|
|
2014-04-07 23:10:40 -06:00
|
|
|
# subshell so that we can export PATH without breaking other things
|
|
|
|
(
|
2014-12-19 00:20:59 -07:00
|
|
|
source "$(dirname "$BASH_SOURCE")/.integration-daemon-start"
|
2014-04-28 22:22:31 -06:00
|
|
|
|
2014-04-07 23:10:40 -06:00
|
|
|
# pull the busybox image before running the tests
|
|
|
|
sleep 2
|
2014-04-28 22:22:31 -06:00
|
|
|
|
2014-04-28 22:23:22 -06:00
|
|
|
source "$(dirname "$BASH_SOURCE")/.ensure-busybox"
|
2014-04-12 03:49:49 +03:00
|
|
|
|
2014-04-07 23:10:40 -06:00
|
|
|
bundle_test_integration_cli
|
2014-04-28 22:22:31 -06:00
|
|
|
|
2014-12-19 00:20:59 -07:00
|
|
|
source "$(dirname "$BASH_SOURCE")/.integration-daemon-stop"
|
2015-01-09 17:28:40 -07:00
|
|
|
) 2>&1 | tee -a $DEST/test.log
|