Add return value for failed tests.
[bertos.git] / test / run_tests.sh
index 9034ac92f0e7df3eb590e173132beb9b2a62ff49..14a6fb5e5aca732850a02de2fc045b268bddd32a 100755 (executable)
@@ -63,7 +63,7 @@ SRC_LIST="
        bertos/cfg/kfile_debug.c
        bertos/io/kblock.c
        bertos/io/kblock_ram.c
-       bertos/io/kblock_file.c
+       bertos/io/kblock_posix.c
        bertos/io/kfile.c
 "
 
@@ -101,12 +101,15 @@ for src in $TESTS; do
                        [ $VERBOSE -gt 0 ] && echo "Running $name..."
                        if ! $exe 2>&1 | tee >$runout $testdir/$name.out; then
                                echo "FAILED [RUN]: $name"
+                               exit 2
                        fi
                else
                        echo "FAILED [BUILD]: $name"
+                       exit 3
                fi
        else
                echo "FAILED [PREPARING]: $name"
+               exit 4
        fi
 done