Restore separate logs; cat errors to stdout.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 27 Sep 2010 13:09:14 +0000 (13:09 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 27 Sep 2010 13:09:14 +0000 (13:09 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4314 38d2e660-2303-0410-9eaa-f027e97ec537

test/run_tests.sh

index 5c7073b7a3e740a81eafc7fd402e9f6d5bab3c61..393d0e614ed75bea34589cf4faad97fe1aaf86e2 100755 (executable)
@@ -94,21 +94,24 @@ for src in $TESTS; do
 
        [ $VERBOSE -gt 0 ] && echo "Preparing $name..."
        [ $VERBOSE -gt 4 ] && echo " $PREPARECMD"
-       if $PREPARECMD 2>&1 >>$buildout; then
+       if $PREPARECMD 2>&1 | tee -a >>$buildout $testdir/$name.prep; then
                [ $VERBOSE -gt 0 ] && echo "Building $name..."
                [ $VERBOSE -gt 4 ] && echo " $BUILDCMD"
-               if $BUILDCMD 2>&1 >>$buildout; then
+               if $BUILDCMD 2>&1 | tee -a >>$buildout $testdir/$name.build; then
                        [ $VERBOSE -gt 0 ] && echo "Running $name..."
-                       if ! $exe 2>&1 >>$runout; then
+                       if ! $exe 2>&1 | tee -a >>$runout $testdir/$name.out; then
                                echo "FAILED [RUN]: $name"
+                               cat $testdir/$name.out
                                exit 2
                        fi
                else
                        echo "FAILED [BUILD]: $name"
+                       cat $testdir/$name.build
                        exit 3
                fi
        else
                echo "FAILED [PREPARING]: $name"
+               cat $testdir/$name.prep
                exit 4
        fi
 done