summaryrefslogtreecommitdiff
path: root/tests/defs
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-08-09 18:13:15 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-08-09 18:13:15 +0200
commit1a758e7d0619627aba4f772925154c02e7042f28 (patch)
treedaa0d41a8c0ee99e3ab49c6aad82ebc0dd63f302 /tests/defs
parent73199a161864ff4f0c692488708c68c22c1c61ea (diff)
parent18fb6351e0d7ffe88aac6043e43bcc5163a1dd53 (diff)
downloadautomake-1a758e7d0619627aba4f772925154c02e7042f28.tar.gz
Merge branch 'test-protocols' into tap-testsuite-work
* test-protocols: tests: don't let a known Solaris make bug poison too many tests gitignore: more use of anchors
Diffstat (limited to 'tests/defs')
-rw-r--r--tests/defs36
1 files changed, 35 insertions, 1 deletions
diff --git a/tests/defs b/tests/defs
index 5e4c2c22e..affb1c1cb 100644
--- a/tests/defs
+++ b/tests/defs
@@ -300,6 +300,41 @@ using_gmake ()
}
am__using_gmake="" # Avoid interferences from the environment.
+# make_can_chain_suffix_rules
+# ---------------------------
+# Return 0 if $MAKE is a make implementation that can chain suffix rules
+# automatically, return 1 otherwise. Caches the result for speed reasons.
+make_can_chain_suffix_rules ()
+{
+ if test -z "$am__can_chain_suffix_rules"; then
+ if using_gmake; then
+ am__can_chain_suffix_rules=yes
+ return 0
+ else
+ mkdir am__chain.dir$$
+ cd am__chain.dir$$
+ unindent > Makefile << 'END'
+ .u.v: ; cp $< $@
+ .v.w: ; cp $< $@
+END
+ echo make can chain suffix rules > foo.u
+ if $MAKE foo.w && diff foo.u foo.w; then
+ am__can_chain_suffix_rules=yes
+ else
+ am__can_chain_suffix_rules=no
+ fi
+ cd ..
+ rm -rf am__chain.dir$$
+ fi
+ fi
+ case $am__can_chain_suffix_rules in
+ yes) return 0;;
+ no) return 1;;
+ *) fatal_ "make_can_chain_suffix_rules: internal error";;
+ esac
+}
+am__can_chain_suffix_rules="" # Avoid interferences from the environment.
+
# seq_ - print a sequence of numbers
# ----------------------------------
# This function simulates GNU seq(1) portably. Valid usages:
@@ -349,7 +384,6 @@ rm_rf_ ()
rm -rf "$@"
}
-
# count_test_results total=N pass=N fail=N xpass=N xfail=N skip=N error=N
# -----------------------------------------------------------------------
# Check that a testsuite run driven by the parallel-tests harness has