summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-11-11 09:45:50 -0500
committerTheodore Ts'o <tytso@mit.edu>2006-11-11 09:45:50 -0500
commit52325593b1979509dc3f18232b50359e311268cc (patch)
treeed7b5330b2c86e55d24ddb0e383a5482746739f5
parent6b3ce9871c3424d0b41e0c7227ddc116d2e0de1a (diff)
downloade2fsprogs-52325593b1979509dc3f18232b50359e311268cc.tar.gz
Add new a new tests make target "checked-failed" which reruns any failed tests
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--tests/ChangeLog3
-rw-r--r--tests/Makefile.in9
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 7de19f86..b21ea95a 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,8 @@
2006-11-11 Theodore Tso <tytso@mit.edu>
+ * 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 43acc785..f9d5d781 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: