From 667a9a995fcd9299ef1f73ff1b38a27991986484 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 11 Feb 1996 23:41:16 +0000 Subject: [PATCH] Testsuite fixes --- automake.in | 2 +- tests/ChangeLog | 6 ++++++ tests/Makefile.am | 5 ++++- tests/Makefile.in | 5 ++++- tests/checkall.test | 4 ++++ 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/automake.in b/automake.in index 6149f78..f1aad93 100755 --- a/automake.in +++ b/automake.in @@ -259,7 +259,7 @@ sub generate_makefile { local ($makefile) = @_; - print "creating ", $makefile, ".in\n"; + # print "creating ", $makefile, ".in\n"; &initialize_per_input; $relative_dir = &dirname ($makefile); diff --git a/tests/ChangeLog b/tests/ChangeLog index 9e00db6..e6d5028 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 11 16:39:14 1996 Tom Tromey + + * checkall.test: Delay a little. + + * Makefile.am (check-local): Print name of failing test. + Sat Feb 10 17:08:39 1996 Tom Tromey * checkall.test: New file. diff --git a/tests/Makefile.am b/tests/Makefile.am index 9fc27c1..e49f529 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -17,7 +17,10 @@ check-local: ## which are compiled -- a possibly useful feature. if test -f $$tst; then dir=.; \ else dir="$(srcdir)"; fi; \ - $$dir/$$tst || failed=`expr $$failed + 1`; \ + $$dir/$$tst || { \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + } \ done; \ if test "$$failed" -eq 0; then \ echo "All $$all tests passed"; \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 3b3aa5c..ec04ba4 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -131,7 +131,10 @@ check-local: all=`expr $$all + 1`; \ if test -f $$tst; then dir=.; \ else dir="$(srcdir)"; fi; \ - $$dir/$$tst || failed=`expr $$failed + 1`; \ + $$dir/$$tst || { \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + } \ done; \ if test "$$failed" -eq 0; then \ echo "All $$all tests passed"; \ diff --git a/tests/checkall.test b/tests/checkall.test index ed6eae5..99cb0c6 100755 --- a/tests/checkall.test +++ b/tests/checkall.test @@ -9,6 +9,10 @@ # 'source', the make will fail. No, really. echo foo > derived +# In fact, sometimes it still fails. So we delay a little to make +# sure the timestamps are ok. +sleep 1 + cat > Makefile.am << 'END' bin_SCRIPTS = derived check-local: -- 2.7.4