nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misc/jenkins: unitrun handle classname
[nit.git]
/
misc
/
jenkins
/
unitrun.sh
diff --git
a/misc/jenkins/unitrun.sh
b/misc/jenkins/unitrun.sh
index
c652286
..
bb5b86e
100755
(executable)
--- a/
misc/jenkins/unitrun.sh
+++ b/
misc/jenkins/unitrun.sh
@@
-29,9
+29,12
@@
shift
/usr/bin/time -f%U -o "${name}.t.out" "$@" > >(tee "${name}.out") 2> >(tee "${name}.2.out" >&2)
res=$?
/usr/bin/time -f%U -o "${name}.t.out" "$@" > >(tee "${name}.out") 2> >(tee "${name}.2.out" >&2)
res=$?
+c=`echo "${name%-*}" | tr "-" "."`
+n=${name##*-}
+
cat > "${name}.xml"<<END
<testsuites><testsuite>
cat > "${name}.xml"<<END
<testsuites><testsuite>
-<testcase classname='other' name='$name' time='`cat "${name}.t.out"`' timestamp='`date -Iseconds`'>
+<testcase classname='$c' name='$n' time='`cat "${name}.t.out"`' timestamp='`date -Iseconds`'>
END
if test "$res" != "0"; then
echo >> "${name}.xml" "<error message='Command returned $res'/>"
END
if test "$res" != "0"; then
echo >> "${name}.xml" "<error message='Command returned $res'/>"