t: report missing output as TODO
[barcat.git] / t / regress.t
index 734e42dbc876cc4864868db745c33728497ab71a..eedefbbb1a7f303d77e56ee306c508700d34ab38 100755 (executable)
@@ -45,8 +45,14 @@ do
                        continue
                fi
                "$@" >$file.out 2>&1
+       elif test -e "$file.out"
+       then
+               "$@" 2>&1 | diffcmd "$file.out" -
        else
-               if test -e $file.out; then "$@" 2>&1 | diffcmd "$file.out" -; fi
+               color 33
+               echo "not ok $test_count - $name # TODO"
+               color 0
+               continue
        fi
 
        if test 0 != $?