tests: add compile.log to the XML in case of failure
authorJean Privat <jean@pryen.org>
Wed, 21 Aug 2013 01:03:24 +0000 (21:03 -0400)
committerJean Privat <jean@pryen.org>
Wed, 21 Aug 2013 01:03:24 +0000 (21:03 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/tests.sh

index e2adbcf..d443b25 100755 (executable)
@@ -157,6 +157,9 @@ function process_result()
                echo >>$xml "<system-out><![CDATA["
                head >>$xml -n 50 out/$pattern.diff.sav.log
                echo >>$xml "]]></system-out>"
+               echo >>$xml "<system-err><![CDATA["
+               cat  >>$xml out/$pattern.compile.log
+               echo >>$xml "]]></system-err>"
                nok="$nok $pattern"
                echo "$ii" >> "$ERRLIST"
        elif [ -n "$NFIXME" ]; then
@@ -169,6 +172,9 @@ function process_result()
                echo >>$xml "<system-out><![CDATA["
                head >>$xml -n 50 out/$pattern.diff.sav.log
                echo >>$xml "]]></system-out>"
+               echo >>$xml "<system-err><![CDATA["
+               cat  >>$xml out/$pattern.compile.log
+               echo >>$xml "]]></system-err>"
                nok="$nok $pattern"
                echo "$ii" >> "$ERRLIST"
        else