From: Gary V. Vaughan Date: Wed, 30 Oct 2013 02:33:20 +0000 (+1300) Subject: tests: run cmdline_wrap last, or not at all if anything else failed. X-Git-Tag: v2.4.2.444~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83405160afeb97ffd4430fd37c8edd7eeb703366;p=thirdparty%2Flibtool.git tests: run cmdline_wrap last, or not at all if anything else failed. * Makefile.am (TESTSUITE_AT): Move stresstest.at and cmdline_wrap.at to the end of the list. * tests/cmdline_wrap.at: If previous tests have failed, then we already know that rerunning them will fail too, so save time by skipping in that case. Signed-off-by: Gary V. Vaughan --- diff --git a/Makefile.am b/Makefile.am index b67132841..6ccc4d0e8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -604,7 +604,9 @@ tests_dir = $(top_srcdir)/tests package_m4 = $(tests_dir)/package.m4 testsuite = $(tests_dir)/testsuite -# The testsuite files are evaluated in the order given here. +# The testsuite files are evaluated in the order given here. When +# adding new tests, make sure cmdline_wrap.at stays at the end so +# that it can check for previous failures and skip if necessary. TESTSUITE = tests/testsuite TESTSUITE_AT = tests/testsuite.at \ tests/libtoolize.at \ @@ -672,14 +674,15 @@ TESTSUITE_AT = tests/testsuite.at \ tests/no-executables.at \ tests/deplibs-ident.at \ tests/configure-iface.at \ - tests/stresstest.at \ - tests/cmdline_wrap.at \ tests/f77demo.at \ tests/fcdemo.at \ tests/darwin.at \ tests/dumpbin-symbols.at \ tests/deplibs-mingw.at \ - tests/sysroot.at + tests/sysroot.at \ + tests/stresstest.at \ + tests/cmdline_wrap.at \ + $(NOTHING_ELSE) EXTRA_DIST += $(testsuite) $(TESTSUITE_AT) $(package_m4) diff --git a/tests/cmdline_wrap.at b/tests/cmdline_wrap.at index 42ce51b1b..f5f5832d1 100644 --- a/tests/cmdline_wrap.at +++ b/tests/cmdline_wrap.at @@ -27,6 +27,9 @@ AT_SETUP([Run tests with low max_cmd_len]) AT_KEYWORDS([recursive expensive]) +dnl If we already have failures, then reruns will fail too! +fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do echo $f; end` +AT_CHECK([test -z "$fail_list" || (exit 77)]) m4_ifdef([AT_CAPTURE_FILE], [AT_CAPTURE_FILE([testsuite.log])])