1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 06:11:12 +00:00
Files
os/scripts/integration-test

22 lines
329 B
Plaintext
Raw Normal View History

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