]> granicus.if.org Git - re2c/commitdiff
- Dump errors into temp results of tests
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 27 Dec 2005 23:45:26 +0000 (23:45 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 27 Dec 2005 23:45:26 +0000 (23:45 +0000)
run_tests.sh.in

index f2a0898b34a37f2caa09e039b24750190f286bb2..b981f478b1c43f712c67b07425cd3762d0879cf8 100644 (file)
@@ -5,7 +5,7 @@ for x in @top_srcdir@/test/*.re; do
        echo $x
        # don't use the -o flag, since it makes it harder to diff.
        outname=@builddir@/test/`basename ${x%.re}.temp`
-       @builddir@/re2c $x | sed -e "s,$x,`basename $x`,g" -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
+       @builddir@/re2c $x 2>&1 | sed -e "s,$x,`basename $x`,g" -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
        if cmp -s ${x%.re}.c $outname; then
                echo "Passed."
                rm $outname