1
0
mirror of https://github.com/rancher/os.git synced 2025-08-15 21:43:42 +00:00
os/scripts/integration-test
2018-11-22 16:28:50 +08:00

22 lines
338 B
Bash
Executable File

#!/bin/bash
# help: Run integration tests
set -ex
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
time go test -v -timeout 9999m $RUNTEST