branch, devel, updated. 481c3c6d8649efdf73a5570f0ef95196f9243bc5
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "". The branch, devel has been updated via 481c3c6d8649efdf73a5570f0ef95196f9243bc5 (commit) from 679438ccf55d90a97b0767b384a66be8067c33ff (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 481c3c6d8649efdf73a5570f0ef95196f9243bc5 Author: Dries Kimpe <[email protected]> Date: Thu Jul 18 17:15:33 2013 -0500 Make tests output TAP format for Jenkins ----------------------------------------------------------------------- Summary of changes: tests/testrunner.sh.in | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 tests/testrunner.sh.in Diff of changes: diff --git a/tests/testrunner.sh.in b/tests/testrunner.sh.in new file mode 100644 index 0000000..e1084a5 --- /dev/null +++ b/tests/testrunner.sh.in @@ -0,0 +1,67 @@ +#!/bin/sh + +# +# Runs each test listed on the commandline, watching the process and killing after a timeout. +# Outputs TAP format +# + +TEST_RUNNER="@TIMEOUT_PROG@" + +opt_verbose= +opt_timeout=600 +opt_outputfile= +while getopts vt:o: name +do + case $name in + t) opt_timeout="$OPTARG";; + v) opt_verbose=1 ;; + o) opt_outputfile="$OPTARG";; + ?) printf "Usage: %s: [-o outputfile] [-v] [-t timeout] test test test\n" $0 + exit 2;; + esac +done +shift $(($OPTIND - 1)) + +TESTCOUNT=$# + +# 3 is for TAP output +if test -z "$opt_outputfile" ; then + exec 3>&0; +else + exec 3>${opt_outputfile}; +fi + +# 4 is for program stdout +# 5 is for program stderr +if test -z "$opt_verbose" ; then + exec 4>/dev/null; +# exec 5>/dev/null; +else + exec 4>&0; +# exec 2>&5; +fi + +echo "1..${TESTCOUNT}" >&3 + +testnumber=0 + +for test in $*; do + testnumber=$((testnumber+1)) + ${TEST_RUNNER} $opt_timeout "$test" | sed -e 's/^/# /' >&4 + ret=$? + if test "${ret}" -eq 0; then + echo -n "ok " >&3 + echo "${testnumber} - ${test}" >&3 + echo -e " # OK\t [${testnumber}/${TESTCOUNT}] - $test" >&2 + else + echo -n "not ok " >&3 + echo "${testnumber} - ${test}" >&3 + echo -e " # FAIL\t [${testnumber}/${TESTCOUNT}] - $test" >&2 + fi + if test "${ret}" -eq 130; then + echo "Ctrl-C received. Stopping tests" + exit 2 + fi +done + + hooks/post-receive --
participants (1)
-
noreply@mcs.anl.gov