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
|
|
|
|
2017-02-02 13:42:03 -06: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
|
|
|
|
|
2016-11-10 11:41:52 +10:00
|
|
|
if [ "$RUNTEST" != "" ]; then
|
|
|
|
RUNTEST="-check.f ${RUNTEST}"
|
|
|
|
fi
|
|
|
|
|
2017-03-23 05:40:14 +00:00
|
|
|
go test -v -timeout 9999m $RUNTEST
|