2 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # This shell script compile, run and verify Nit program files
20 # Set lang do default to avoid failed tests because of locale
23 # Explore candidates for LC_ALL
25 # If C.UTF-8, the most agnostic UTF-8 locale is supported, we
26 # use it, otherwise we default to the UTF-8 system locale, and
27 # if unavailable, we default on C.
29 # Note that C however is not guaranteed to be UTF-8, and
30 # some tests may fail when relying on Unicode semantics.
31 locale_candidate
=C.UTF
-8
32 if ! locale
-a
2>/dev
/null |
grep -q C.UTF
-8; then
33 locale_candidate
="$(locale -a | grep -i utf8 | head -n1)"
34 if [ -z
"$locale_candidate" ]; then
38 export LC_ALL
="$locale_candidate"
40 if uname |
grep Darwin
1>/dev
/null
2>&1; then
41 export LANG
=en_US.UTF
-8
42 export LC_ALL
=en_US.UTF
-8
45 export NIT_TESTING
=true
46 # Use the pid as a collision prevention
47 export NIT_TESTING_ID
=$$
50 # Identify this as a tests.sh test to differentiate from a nitunit test
51 export NIT_TESTING_TESTS_SH
=true
55 # Get the first Java lib available
56 if which_java
=$
(which javac
2>/dev
/null
); then
58 if sh
-c
"readlink -f ." 1>/dev
/null
2>&1; then
59 READLINK
="readlink -f"
64 JAVA_HOME
=$
(dirname $
(dirname $
($READLINK "$which_java")))
67 paths
=`echo $JAVA_HOME/jre/lib/*/{client,server}/libjvm.so`
68 if [ -n
"$paths" ]; then
70 JNI_LIB_PATH
=`dirname ${paths[0]}`
78 # User CPU time limit (in seconds)
79 # Is used to avoid to CPU intensive test (infinite loops). See ulimit -t
80 usertimelimit
=600 # 1 CPU minute
82 # Real-time limit (in seconds)
83 # Is used to avoid waiting or sleeping tests.
84 # Require timeout or timelimit, or else is not used.
85 realtimelimit
=300 # 5 min
87 # User limit for write files (in kilo-bytes)
88 # Is used to avoid execution that loop and fill the hard drive. See ulimit -f
89 # Note that a test might require a lot of temporary disk space (eg. nitc+gcc)
90 filelimit
=100000 # ~100MB
92 # Limit (in bytes) for generated .res file.
93 # Larger ones are truncated and will fail tests
94 # Is used to avoid processing huge crappy res file (diff, xml, etc)
95 reslimit
=100000 # ~100KB
101 Usage
: $e [options
] modulenames
102 -o option Pass option to the engine
103 -v Verbose
(show tests steps
)
105 --engine Use a specific engine
(default
=nitc
)
106 --noskip Do not skip a
test even
if the .skip
file matches
107 --outdir Use a specific output folder
(default
=out
/)
108 --compdir Use a specific temporary compilation folder
(default
=$compdir)
109 --node Run as a node
in parallel
, will not output context information
110 --autosav Copy the .res files directly
in the sav folder overriding existing .res files
114 # Run a command with a timeout and a time count.
116 # -o file write the user time into file (REQUIRED). see `-o` in `man time`
117 # -a append the time to the file (instead of overwriting it). see `-a` in `man time`
123 while [ $stop = false
]; do
125 -o
) o
="$2"; shift; shift;;
131 ulimit -f
"$filelimit" 2> /dev
/null
132 ulimit -t
"$usertimelimit" 2> /dev
/null
133 if test -d
"$1"; then
135 elif test -n
"$TIME"; then
136 $TIME -o
"$o" $a $TIMEOUT "$@"
138 if test -n
"$a"; then echo 0 >> "$o"; else echo 0 > "$o"; fi
144 # Output a timestamp attribute for XML, or an empty line
147 if test -n
"$TIMESTAMP"; then
148 echo "timestamp='`$TIMESTAMP`'"
155 # Get platform specific commands ##########################
157 # Detect a working timeout
158 if sh
-c
"timelimit echo" 1>/dev
/null
2>&1; then
159 TIMEOUT
="timelimit -t $realtimelimit"
160 elif sh
-c
"timeout 1 echo" 1>/dev
/null
2>&1; then
161 TIMEOUT
="timeout ${realtimelimit}s"
163 echo "No timelimit or timeout command detected. Tests may hang :("
166 # Detect a working time command
167 if command time --quiet
-f
%e true
2>/dev
/null
; then
168 TIME
="command time --quiet -f%e"
169 elif command time -f
%e true
2>/dev
/null
; then
170 TIME
="command time -f%e"
171 elif command gtime
-f
%e true
2>/dev
/null
; then
172 TIME
="command gtime -f%e"
177 # Detect a working date command
178 if date -Iseconds
>/dev
/null
2>&1; then
179 TIMESTAMP
="date -Iseconds"
184 # Detect a working hostname command
185 if hostname
--version
2>&1 |
grep coreutils
>/dev
/null
2>&1; then
188 HOSTNAME
="hostname -s"
191 UNAME
=`uname | sed s/-.*//`
193 # $1 is the pattern of the test
194 # $2 is the file to compare to
196 # 0: if the file to compare to do not exists
197 # 1: if the file match
198 # 2: if the file match with soso
199 # 3: if the file do not match
200 function compare_to_result
()
204 if [ ! -r
"$sav" ]; then return 0; fi
205 test "`cat -- "$sav"`" = "UNDEFINED" && return 1
206 diff -u
--strip
-trailing
-cr
-- "$sav" "$outdir/$pattern.res" > "$outdir/$pattern.diff.sav.log"
207 if [ "$?" == 0 ]; then
210 sed '/[Ww]arning/d;/[Ee]rror/d' "$outdir/$pattern.res" > "$outdir/$pattern.res2"
211 sed '/[Ww]arning/d;/[Ee]rror/d' "$sav" > "$outdir/$pattern.sav2"
212 grep '[Ee]rror' "$outdir/$pattern.res" >/dev
/null
&& echo "Error" >> "$outdir/$pattern.res2"
213 grep '[Ee]rror' "$sav" >/dev
/null
&& echo "Error" >> "$outdir/$pattern.sav2"
214 diff -u
--strip
-trailing
-cr
"$outdir/$pattern.sav2" "$outdir/$pattern.res2" > "$outdir/$pattern.diff.sav.log2"
215 if [ "$?" == 0 ]; then
224 sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g'<<EOF
229 # As argument: the pattern used for the file
230 function process_result
()
248 # Truncate too big res file
249 local size
=$
(wc -c
< "$outdir/$pattern.res")
250 if test -n
"$reslimit" -a
"$size" -gt
"$reslimit"; then
251 # The most portable way to truncate a file is with Perl
252 perl
-e
"truncate \"$outdir/$pattern.res\", $reslimit;"
253 echo "***TRUNCATED***" >> "$outdir/$pattern.res"
256 echo >>$xml "<testcase classname='`xmlesc "$pack"`' name='`xmlesc "$description"`' time='`cat -- "$outdir/$pattern.
time.out
"`' `timestamp`>"
257 #for sav in "sav/$engine/fixme/$pattern.res" "sav/$engine/$pattern.res" "sav/fixme/$pattern.res" "sav/$pattern.res" "sav/$pattern.sav"; do
258 for savdir
in $savdirs; do
259 local sav
=$savdir/fixme
/$pattern.res
260 compare_to_result
"$pattern" "$sav"
270 if [ -z
"$FIRST" ]; then
277 if [ -z
"$FIRST" ]; then
285 sav
=$savdir/$pattern.res
286 compare_to_result
"$pattern" "$sav"
296 if [ -z
"$FIRST" ]; then
303 if [ -z
"$FIRST" ]; then
311 OLD
=`echo "$OLD" | sed -e 's/ */ /g' -e 's/^ //' -e 's/ $//'`
312 istodo
"$outdir/$pattern.res"
314 if [ -n
"$SAV" ]; then
315 if [ -n
"$OLD" ]; then
316 echo "[*ok*] $outdir/$pattern.res $SAV - but $OLD remains!"
317 echo >>$xml "<error message='`xmlesc "ok
$outdir/$pattern.res
- but
$OLD remains
"`'/>"
318 remains
="$remains $OLD"
319 test "$autosav" = "true" && rm "$OLD"
321 echo "[ok] $outdir/$pattern.res $SAV"
324 elif [ -n
"$FIXME" ]; then
325 if [ -n
"$OLD" ]; then
326 echo "[*fixme*] $outdir/$pattern.res $FIXME - but $OLD remains!"
327 echo >>$xml "<error message='`xmlesc "ok
$outdir/$pattern.res
- but
$OLD remains
"`'/>"
328 remains
="$remains $OLD"
329 test "$autosav" = "true" && rm "$OLD"
331 echo "[fixme] $outdir/$pattern.res $FIXME"
332 echo >>$xml "<skipped/>"
334 todos
="$todos $pattern"
335 elif [ "x$NYI" = "x0" ]; then
336 echo "[todo] $outdir/$pattern.res -> not yet implemented"
337 echo >>$xml "<skipped/>"
338 todos
="$todos $pattern"
339 elif [ -n
"$SOSO" ]; then
340 echo "[======= soso $outdir/$pattern.res $SOSO =======]"
341 echo >>$xml "<error message='`xmlesc "soso
$outdir/$pattern.res
$SOSO"`'/>"
342 echo >>$xml "<system-out><![CDATA["
343 cat -v
-- "$outdir/$pattern.diff.sav.log" |
head >>$xml -n
50
344 echo >>$xml "]]></system-out>"
346 echo "$ii" >> "$ERRLIST"
347 test "$autosav" = "true" && cp "$outdir/$pattern.res" "$SOSO"
348 elif [ -n
"$SOSOF" ]; then
349 echo "[======= fixme soso $outdir/$pattern.res $SOSOF =======]"
350 echo >>$xml "<error message='`xmlesc "soso
$outdir/$pattern.res
$SOSO"`'/>"
351 echo >>$xml "<system-out><![CDATA["
352 cat -v
-- "$outdir/$pattern.diff.sav.log" |
head >>$xml -n
50
353 echo >>$xml "]]></system-out>"
355 echo "$ii" >> "$ERRLIST"
356 test "$autosav" = "true" && cp "$outdir/$pattern.res" && "$SOSO"
357 elif [ -n
"$NSAV" ]; then
358 echo "[======= fail $outdir/$pattern.res $NSAV =======]"
359 echo >>$xml "<error message='`xmlesc "fail
$outdir/$pattern.res
$NSAV"`'/>"
360 echo >>$xml "<system-out><![CDATA["
361 cat -v
-- "$outdir/$pattern.diff.sav.log" |
head >>$xml -n
50
362 echo >>$xml "]]></system-out>"
364 echo "$ii" >> "$ERRLIST"
365 test "$autosav" = "true" && cp "$outdir/$pattern.res" "$NSAV"
366 elif [ -n
"$NFIXME" ]; then
367 echo "[======= changed $outdir/$pattern.res $NFIXME ======]"
368 echo >>$xml "<error message='`xmlesc "changed
$outdir/$pattern.res
$NFIXME"`'/>"
369 echo >>$xml "<system-out><![CDATA["
370 cat -v
-- "$outdir/$pattern.diff.sav.log" |
head >>$xml -n
50
371 echo >>$xml "]]></system-out>"
373 echo "$ii" >> "$ERRLIST"
374 test "$autosav" = "true" && cp "$outdir/$pattern.res" "$NFIXME"
375 elif [ -s
"$outdir/$pattern.res" ]; then
376 echo "[=== no sav ===] $outdir/$pattern.res is not empty"
377 echo >>$xml "<error message='no sav and not empty'/>"
378 echo >>$xml "<system-out><![CDATA["
379 cat -v
>>$xml -- "$outdir/$pattern.res"
380 echo >>$xml "]]></system-out>"
382 echo "$ii" >> "$ERRLIST"
383 test "$autosav" = "true" && cp "$outdir/$pattern.res" "sav/"
385 # no sav but empty res
386 echo "[0k] $outdir/$pattern.res is empty"
389 if test -s
"$outdir/$pattern.cmp.err"; then
390 echo >>$xml "<system-err><![CDATA["
391 cat -v
>>$xml -- "$outdir/$pattern.cmp.err"
392 echo >>$xml "]]></system-err>"
394 echo >>$xml "</testcase>"
399 test "$noskip" = true
&& return 1
400 if echo "$1" |
grep -f
"$engine.skip" >/dev
/null
2>&1; then
402 echo >>$xml "<testcase classname='`xmlesc "$3"`' name='`xmlesc "$2"`' `timestamp`><skipped/></testcase>"
405 if test -n
"$isinterpret" && echo "$1" |
grep -f
"exec.skip" >/dev
/null
2>&1; then
406 echo "=> $2: [skip exec]"
407 echo >>$xml "<testcase classname='`xmlesc "$3"`' name='`xmlesc "$2"`' `timestamp`><skipped/></testcase>"
412 local os_skip_file
=$UNAME.skip
413 if test -e
$os_skip_file && echo "$1" |
grep -f
"$os_skip_file" >/dev
/null
2>&1; then
414 echo "=> $2: [skip os]"
415 echo >>$xml "<testcase classname='`xmlesc "$3"`' name='`xmlesc "$2"`' `timestamp`><skipped/></testcase>"
420 local host_skip_file
=`$HOSTNAME`.skip
421 if test -e
$host_skip_file && echo "$1" |
grep -f
"$host_skip_file" >/dev
/null
2>&1; then
422 echo "=> $2: [skip hostname]"
423 echo >>$xml "<testcase classname='`xmlesc "$3"`' name='`xmlesc "$2"`' `timestamp`><skipped/></testcase>"
431 test "$noskip" = true
&& return 1
432 for savdir
in $savdirs .
; do
433 local f
="$savdir/exec.skip"
434 test -f
"$f" ||
continue
435 if echo "$1" |
grep -f
"$f" >/dev
/null
2>&1; then
436 echo -n
"_ no exec by $f; "
445 test "$noskip" = true
&& return 1
446 for savdir
in $savdirs .
; do
447 local f
="$savdir/cc.skip"
448 test -f
"$f" ||
continue
449 if echo "$1" |
grep -f
"$f" >/dev
/null
2>&1; then
456 # Check that the resfile ($1) matches some magic strings in `todo` files.
459 test "$no" = true
&& return 1
460 for savdir
in $savdirs .
; do
461 local f
="$savdir/todo"
462 test -f
"$f" ||
continue
463 if grep -f
"$f" "$1" >/dev
/null
2>&1; then
472 local name
="$enginebinname"
473 local recent
=`ls -t ../src/$name ../src/$name_[0-9] ../bin/$name ../contrib/nitin/bin/$name ../c_src/$name 2>/dev/null | head -1`
474 if [[ "x$recent" == "x" ]]; then
475 echo "Could not find binary for engine $engine, aborting"
478 if [ "x$isnode" = "xfalse" ]; then
479 echo "Found binary for engine $engine: $recent $OPT"
491 while [ $stop = false
]; do
493 -o
) OPT
="$OPT $2"; shift; shift;;
494 -v
) verbose
=true
; shift;;
496 --engine
) engine
="$2"; shift; shift;;
497 --noskip
) noskip
=true
; shift;;
498 --outdir
) outdir
="$2"; shift; shift;;
499 --compdir
) compdir
="$2"; shift; shift;;
500 --node
) isnode
=true
; shift;;
501 --autosav
) autosav
=true
; shift;;
505 enginebinname
=$engine
512 OPT
="--separate $OPT --compile-dir $compdir"
513 savdirs
="sav/nitc-common/"
518 OPT
="--separate $OPT --compile-dir $compdir"
519 savdirs
="sav/nitc-common/"
524 OPT
="--erasure $OPT --compile-dir $compdir"
525 savdirs
="sav/nitc-common/"
530 OPT
="--semi-global $OPT --compile-dir $compdir"
531 savdirs
="sav/nitc-common/"
536 OPT
="--global $OPT --compile-dir $compdir"
537 savdirs
="sav/nitc-common/"
559 OPT
="--compile-dir $compdir --ant"
561 savdirs
="sav/nitc-common/"
565 OPT
="-m emscripten_nodejs.nit --semi-global $OPT --compile-dir $compdir"
566 savdirs
="sav/nitcsg/"
569 echo "unknown engine $engine"
574 savdirs
="sav/`$HOSTNAME` sav/$UNAME sav/$engine $savdirs sav/"
576 # The default nitc compiler
577 [ -z
"$NITC" ] && find_nitc
579 # Set NIT_DIR if needed
580 [ -z
"$NIT_DIR" ] && export NIT_DIR
=..
582 # Mark to distinguish files among tests
590 # CLEAN the out directory
591 rm -rf
"$outdir/" 2>/dev
/null
592 mkdir
"$outdir" 2>/dev
/null
594 # File where error tests are outputed
595 # Old ERRLIST is backuped
596 ERRLIST
=${ERRLIST:-errlist}
597 ERRLIST_TARGET
=$ERRLIST
599 # Initiate new ERRLIST
600 if [ "x$ERRLIST" = "x" ]; then
611 if [ "x$XMLDIR" = "x" ]; then
612 xml
="tests-$engine.xml"
614 sum=`echo $@ | md5sum | cut -f1 -d " "`
615 xml
="$XMLDIR/tests-$engine-$sum.xml"
619 echo >$xml "<testsuites><testsuite>"
622 if [ ! -f
"$ii" ]; then
623 echo "File '$ii' does not exist."
626 f
=`basename -- "$ii" .nit`
628 pack
="tests.${engine}".
`echo $ii | perl -p -e 's|^../([^/]*)/([a-zA-Z_]*).*|\1.\2| || s|^([a-zA-Z]*)[^_]*_([a-zA-Z]*).*|\1.\2| || s|\W*([a-zA-Z_]*).*|\1|'`
630 # Sould we skip the file for this engine?
631 need_skip
"$f" "$f" "$pack" && continue
633 local_tmp
=${ii/../AA}
634 if [ "x$local_tmp" = "x$ii" ]; then
635 includes
="-I . -I ../lib/core -I ../lib/core/collection -I alt"
640 for i
in "$ii" `./alterner.pl --start '#' --altsep '_' -- "$ii"`; do
641 bf
=`basename -- "$i" .nit`
644 # Sould we skip the alternative for this engine?
645 need_skip
"$bf" "$bf" "$pack" && continue
649 if [ -f
"$f.inputs" ]; then
651 export MNIT_READ_INPUT
="$f.inputs"
654 export MNIT_READ_INPUT
=/dev
/null
658 if [ "$engine" = "emscripten" ]; then
662 if [ -n
"$isinterpret" ]; then
663 cat > "$ff.bin" <<END
664 exec $NITC --no
-color
$OPT $includes -- $
(printf '%q' "$i") "\$@"
670 echo 0.0 > "$ff.time.out"
671 elif [ -n
"$isinteractive" ]; then
672 cat > "$ff.bin" <<END
673 exec $NITC --no
-color
--no
-prompt
--source-name $
(printf '%q' "$i") $OPT $includes < $
(printf '%q' "$i") "\$@"
679 echo 0.0 > "$ff.time.out"
681 if skip_cc
"$bf"; then
687 if [ "x$verbose" = "xtrue" ]; then
689 echo $NITC --no
-color
$OPT -o
"$ffout" "$includes" $nocc "$i"
691 NIT_NO_STACK
=1 JNI_LIB_PATH
=$JNI_LIB_PATH JAVA_HOME
=$JAVA_HOME \
692 saferun
-o
"$ff.time.out" $NITC --no
-color
$OPT -o
"$ffout" $includes $nocc "$i" 2> "$ff.cmp.err" > "$ff.compile.log"
694 if [ "x$verbose" = "xtrue" ]; then
695 cat -- "$ff.compile.log"
696 cat >&2 -- "$ff.cmp.err"
699 rm -r
"$compdir" 2>/dev
/null
701 if [ "$engine" = "emscripten" ]; then
702 echo > "$ff.bin" "nodejs $ffout \"\$@\""
704 if grep "Fatal Error: more than one primitive class" "$ff.compile.log" > /dev
/null
; then
705 echo " [skip] do no not imports kernel"
706 echo >>$xml "<testcase classname='`xmlesc "$pack"`' name='`xmlesc "$bf"`' `timestamp`><skipped/></testcase>"
710 if [ "$ERR" != 0 ]; then
712 cat -- "$ff.compile.log" "$ff.cmp.err" > "$ff.res"
713 process_result
"$bf" "$bf" "$pack"
714 elif [ -n
"$nocc" ]; then
718 process_result
"$bf" "$bf" "$pack"
719 elif [ -x
"$ff.bin" ]; then
720 if skip_exec
"$bf"; then
723 process_result
"$bf" "$bf" "$pack"
729 if [ "x$verbose" = "xtrue" ]; then
731 echo "NIT_NO_STACK=1 $ff.bin" $args
733 NIT_NO_STACK
=1 LD_LIBRARY_PATH
=$JNI_LIB_PATH WRITE
="$ff.write" \
734 saferun
-a
-o
"$ff.time.out" "$ff.bin" $args < "$inputs" > "$ff.res" 2>"$ff.err"
735 mv "$ff.time.out" "$ff.times.out"
736 awk '{ SUM += $1} END { print SUM }' "$ff.times.out" > "$ff.time.out"
738 if [ "x$verbose" = "xtrue" ]; then
742 if [ -f
"$ff.write" ]; then
743 cat -- "$ff.write" >> "$ff.res"
744 elif [ -d
"$ff.write" ]; then
745 /bin
/ls -F
"$ff.write" >> "$ff.res"
747 cp -- "$ff.res" "$ff.res2"
748 cat -- "$ff.cmp.err" "$ff.err" "$ff.res2" > "$ff.res"
749 process_result
"$bf" "$bf" "$pack"
751 if [ -f
"$f.args" ]; then
759 name
="$bf args $cptr"
761 # Sould we skip the input for this engine?
762 need_skip
"$bff" " $name" "$pack" && continue
764 # use a specific inputs file, if required
765 if [ -f
"$bff.inputs" ]; then
766 ffinputs
="$bff.inputs"
771 rm -rf
"$fff.res" "$fff.err" "$fff.write" 2> /dev
/null
772 if [ "x$verbose" = "xtrue" ]; then
774 echo "NIT_NO_STACK=1 $ff.bin" $args
777 echo "$ff.bin $args" > "$fff.bin"
779 WRITE
="$fff.write" saferun
-o
"$fff.time.out" sh
-c
"NIT_NO_STACK=1 $fff.bin < $ffinputs > $fff.res 2>$fff.err"
780 if [ "x$verbose" = "xtrue" ]; then
782 cat >&2 -- "$fff.err"
784 if [ -f
"$fff.write" ]; then
785 cat -- "$fff.write" >> "$fff.res"
786 elif [ -d
"$fff.write" ]; then
787 /bin
/ls -F
-- "$fff.write" >> "$fff.res"
789 if [ -s
"$fff.err" ]; then
790 cp -- "$fff.res" "$fff.res2"
791 cat -- "$fff.err" "$fff.res2" > "$fff.res"
793 process_result
"$bff" " $name" "$pack"
796 elif [ -f
"$ff.bin" ]; then
797 #Not executable (platform?)"
799 process_result
"$bf" "$bf" "$pack"
802 cat -- "$ff.cmp.err" > "$ff.res"
803 echo "Compilation error" > "$ff.res"
804 process_result
"$bf" "$bf" "$pack"
809 if [ "x$isnode" = "xfalse" ]; then
810 echo "engine: $engine ($enginebinname $OPT)"
811 echo "ok: " `echo $ok | wc -w` "/" `echo $ok $nok $nos $todos | wc -w`
813 if [ -n
"$nok" ]; then
815 echo "There were $(echo $nok | wc -w) errors ! (see file $ERRLIST)"
817 if [ -n
"$nos" ]; then
820 if [ -n
"$todos" ]; then
821 echo "todo/fixme: $todos"
823 if [ -n
"$remains" ]; then
824 echo "sav that remains: $remains"
829 if [ "x$ERRLIST" != "x" ]; then
830 if [ -f
"$ERRLIST_TARGET" ]; then
831 mv "$ERRLIST_TARGET" "${ERRLIST_TARGET}.bak"
833 uniq $ERRLIST > $ERRLIST_TARGET
837 echo >>$xml "</testsuite></testsuites>"
839 if [ -n
"$nok" ]; then