nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: gamnit: miscellaneous services and a few fixes
[nit.git]
/
misc
/
jenkins
/
unitrun.sh
diff --git
a/misc/jenkins/unitrun.sh
b/misc/jenkins/unitrun.sh
index
6b1c7f5
..
1c3d39f
100755
(executable)
--- a/
misc/jenkins/unitrun.sh
+++ b/
misc/jenkins/unitrun.sh
@@
-63,13
+63,21
@@
if test "$res" != "0"; then
echo >> "${name}.xml" "<error message='Command returned $res'/>"
echo "+ Command returned $res" >&2
fi
echo >> "${name}.xml" "<error message='Command returned $res'/>"
echo "+ Command returned $res" >&2
fi
+if test -s "${name}.out"; then
cat >> "${name}.xml"<<END
<system-out><![CDATA[
`cat -v ${name}.out`
]]></system-out>
cat >> "${name}.xml"<<END
<system-out><![CDATA[
`cat -v ${name}.out`
]]></system-out>
+END
+fi
+if test -s "${name}.2.out"; then
+cat >> "${name}.xml"<<END
<system-err><![CDATA[
`cat -v ${name}.2.out`
]]></system-err>
<system-err><![CDATA[
`cat -v ${name}.2.out`
]]></system-err>
+END
+fi
+cat >> "${name}.xml"<<END
</testcase>
</testsuite></testsuites>
END
</testcase>
</testsuite></testsuites>
END