3 # this file is executed in a subshell - set up the common stuff
4 source maint/travis-ci_scripts/common.bash
6 if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then exit 0 ; fi
9 local -x HARNESS_OPTIONS=c:j$VCPU_USE
10 if [[ "$VCPU_USE" == 1 ]]; then
11 ulim=$(( ( $(ps xH | wc -l) - 3 ) + 4 )) # (real count excluding header + ps + wc) + space for ( make + tee + harness + <actual test> )
12 echo_err "$(tstamp) Setting process/thread limit to $ulim"
14 sleep 10 # needed to settle things down a bit
16 make test 2> >(tee "$TEST_STDERR_LOG")
19 # announce everything we have on this box
20 TRAVIS="" perl -Ilib t/00describe_environment.t >/dev/null
23 if [[ "$CLEANTEST" = "true" ]] ; then
24 echo_err "$(tstamp) Running tests with plain \`make test\`"
25 run_or_err "Prepare blib" "make pure_all"
28 PROVECMD="prove -lrswj$VCPU_USE xt t"
30 # FIXME - temporary, until Package::Stash is fixed
31 if perl -M5.010 -e 1 &>/dev/null ; then
32 PROVECMD="$PROVECMD -T"
35 echo_err "$(tstamp) running tests with \`$PROVECMD\`"
36 $PROVECMD 2> >(tee "$TEST_STDERR_LOG")
40 if [[ -z "$DBIC_TRACE" ]] && [[ -z "$DBIC_MULTICREATE_DEBUG" ]] && [[ -s "$TEST_STDERR_LOG" ]] ; then
41 STDERR_LOG_SIZE=$(wc -l < "$TEST_STDERR_LOG")
46 echo "Test run produced $STDERR_LOG_SIZE lines of output on STDERR:"
47 echo "============================================================="
48 cat "$TEST_STDERR_LOG"
49 echo "============================================================="
50 echo "End of test run STDERR output ($STDERR_LOG_SIZE lines)"
57 echo "${POSTMORTEM:- \o/ No notable smoke run issues \o/ }"
59 echo "$(tstamp) Testing took a total of $(( $TEST_T1 - $TEST_T0 ))s"
60 if [[ -n "$INSTALLDEPS_OUT" ]] ; then
61 echo "$(tstamp) Full dep install log at $(/usr/bin/nopaste -q -s Shadowcat -d DepInstall <<< "$INSTALLDEPS_OUT")"