From 52325593b1979509dc3f18232b50359e311268cc Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 11 Nov 2006 09:45:50 -0500 Subject: [PATCH] Add new a new tests make target "checked-failed" which reruns any failed tests Signed-off-by: "Theodore Ts'o" --- tests/ChangeLog | 3 +++ tests/Makefile.in | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/tests/ChangeLog b/tests/ChangeLog index 7de19f8..b21ea95 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 2006-11-11 Theodore Tso + * Makefile.in (check-failed): New target which automatically + re-runs any failed tests + * f_badinode, f_bad_disconnected_inode: Update expect scripts to show check for i_blocks_hi instead of i_frag and i_fsize. diff --git a/tests/Makefile.in b/tests/Makefile.in index 43acc78..f9d5d78 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -28,6 +28,15 @@ check:: test_script @echo " " @./test_script +check-failed: + @a=`/bin/ls *.failed 2> /dev/null | sed -e 's/.failed//'`; \ + if test "$$a"x == x ; then \ + echo "No failed tests" ; \ + else \ + ./test_script $$a ; \ + fi + + TDIR=f_testnew # Target which creates a new testcase to simplify adding new regression tests. testnew: -- 1.8.3.1