Restore ability to handle underdefined root (t/prefetch/incomplete.t)
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 40_script.bash
1 #!/bin/bash
2
3 source maint/travis-ci_scripts/common.bash
4 if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi
5
6 export HARNESS_TIMER=1 HARNESS_OPTIONS=c:j$NUMTHREADS
7
8 START_TIME=$SECONDS
9 if [[ "$CLEANTEST" = "true" ]] ; then
10   echo_err "$(tstamp) Running tests with plain \`make test\`"
11   run_or_err "Prepare blib" "make pure_all"
12   make test
13 else
14   PROVECMD="prove -lrswj$NUMTHREADS t xt"
15   echo_err "$(tstamp) running tests with \`$PROVECMD\`"
16   $PROVECMD
17 fi
18
19 echo "$(tstamp) Testing took a total of $(( $SECONDS - $START_TIME ))s"