1
0
mirror of https://github.com/rancher/os.git synced 2025-06-21 04:31:55 +00:00
os/scripts/integration-test
Sven Dowideit 1d289143fe Select a specific integration test to run
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-10 13:07:45 +10:00

22 lines
323 B
Bash
Executable File

#!/bin/bash
# help: Run integration tests
set -e
if [ "$INTEGRATION_TESTS" = 0 ]; then
exit 0
fi
source $(dirname $0)/version
cd $(dirname $0)/../tests
if [ ! -e ../dist/artifacts/initrd ]; then
../scripts/dev
fi
if [ "$RUNTEST" != "" ]; then
RUNTEST="-check.f ${RUNTEST}"
fi
go test -timeout 9999m $RUNTEST