2009-03-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Solaris make testsuite fixes.
+ * tests/check10.test: When a rule fails, Solaris make will
+ output the complete command that failed; in this case the test
+ suite driver. Adjust the test to not bogusly match lines from
+ the driver, rather than its output.
+ * tests/distcleancheck.test: Avoid triggering VPATH rewriting,
+ not desirable in this test.
+ * tests/specflg10.test: Use BUILT_SOURCES to specify an
+ intermediate target, so Solaris make knows what to do.
+
testsuite: SKIP compile tests if configure found no compiler.
* tests/depend6.test: configure will exit 77 if AC_PROG_CC found
no working compiler. Allow the test to be SKIPped in that case.
#! /bin/sh
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
cat stdout
grep '1 [tT]ests' stdout && Exit 1
-grep '^[^1]* [tT]est ' stdout && Exit 1
+grep '[02-9] [tT]est ' stdout && Exit 1
grep '1 .* were ' stdout && Exit 1
-grep '^[^1]* was' stdout && Exit 1
+grep '[02-9].* was .*run' stdout && Exit 1
grep 'All 1 ' stdout && Exit 1
-grep '^ .*[tT]est' stdout && Exit 1
$EGREP '1 (un)?expected (failures|passes)' stdout && Exit 1
$EGREP '[^1] (un)?expected (failure|pass)\)' stdout && Exit 1
#! /bin/sh
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
foo_SOURCES = foo.c
dist_man_MANS = foo.1
+# We write `./foo.1' inside the rule on purpose, to avoid VPATH rewriting
+# done by some `make' implementations.
foo.1: foo$(EXEEXT)
- echo man page for foo$(EXEEXT) > foo.1
+ echo man page for foo$(EXEEXT) > ./foo.1
## Ignore warnings about overridden variables
AUTOMAKE_OPTIONS = -Wno-override
#! /bin/sh
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
SUFFIXES = .foo .c
.foo.c:
cat $< >$@
+BUILT_SOURCES = bla.c
CLEANFILES = bla.c
END