1
0
mirror of https://github.com/rancher/os.git synced 2025-06-07 14:12:43 +00:00
os/scripts/integration-test

22 lines
335 B
Plaintext
Raw Permalink Normal View History

2016-05-23 06:11:26 +00:00
#!/bin/bash
2016-07-20 17:42:16 +00:00
# help: Run integration tests
set -ex
2016-05-23 06:11:26 +00:00
2016-06-29 04:41:40 +00:00
if [ "$INTEGRATION_TESTS" = 0 ]; then
exit 0
fi
2016-06-13 23:33:07 +00:00
source $(dirname $0)/version
2016-07-20 17:42:16 +00:00
cd $(dirname $0)/../tests
2016-05-23 06:11:26 +00:00
if [ ! -e "../dist/artifacts/$INITRD" ]; then
2016-07-20 17:42:16 +00:00
../scripts/dev
2016-05-23 06:11:26 +00:00
fi
if [ "$RUNTEST" != "" ]; then
RUNTEST="-check.f ${RUNTEST}"
fi
time go test -v -timeout 9999m $RUNTEST