diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2010-04-28 16:50:13 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-28 17:18:24 +0200 |
commit | 2ef6217b9f92e227cc21f9a231ec7c26f2c6cc7a (patch) | |
tree | 0393d6aae2f583f54888f375a3bec859f81803ea /tests | |
parent | c38c301558a6ccd28d8d4ebb69ec77109dc10194 (diff) | |
download | ptxdist-2ef6217b9f92e227cc21f9a231ec7c26f2c6cc7a.tar.gz ptxdist-2ef6217b9f92e227cc21f9a231ec7c26f2c6cc7a.tar.xz |
[libptxdisttest] added report_{begin, end} tag functions
this patch adds the functions report_begin and report_and
into the libptxdisttest.sh test library. This will probably
break the output of some older testscripts depending this
library
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libptxdisttest.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/libptxdisttest.sh b/tests/libptxdisttest.sh index 00a924413..9488e1afe 100644 --- a/tests/libptxdisttest.sh +++ b/tests/libptxdisttest.sh @@ -14,7 +14,6 @@ REPORTFILE="${PTXDIST_WORKSPACE}/test${PTXDIST_PLATFORMSUFFIX}.report" TESTRUNDIRBASE="${PTXDIST_WORKSPACE}/results/result${PTXDIST_PLATFORMSUFFIX}" [ -d "$TESTRUNDIRBASE" ] || mkdir -p "$TESTRUNDIRBASE" -echo "<report starttime=\""$(date +%FT%T.%N)"\">" > "$REPORTFILE" RED='\0033[1;31m' GREEN='\0033[1;32m' @@ -99,6 +98,15 @@ reportwrite() { esac } +report_begin() { + echo "<report starttime=\"$(date +%FT%T.%N)\">" > "$REPORTFILE" +} + +report_end() { + echo "</report>" >> "$REPORTFILE" + cp "$REPORTFILE" "$TESTRUNDIRBASE/test${PTXDIST_PLATFORMSUFFIX}-${datenohyphen}-${testrunseq}.report" +} + test_begin() { (( testseq++ )) local testname=${FUNCNAME[1]/"acctest_"} |