summaryrefslogtreecommitdiff
path: root/tests/check.test
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2001-01-29 09:41:43 +0000
committerAkim Demaille <akim@epita.fr>2001-01-29 09:41:43 +0000
commitf28082967d9b27823f4cfbf923cf10a49a76401b (patch)
tree899bb168fe5ff33cf81cd7f9be603f57e78fdfe2 /tests/check.test
parentf985cce39e8045fcf089540cb82204d4bc45a9af (diff)
downloadautomake-f28082967d9b27823f4cfbf923cf10a49a76401b.tar.gz
* automake.in (handle_phony): Sort.
(file_contents_with_transform): Catch `.PHONY:'. (handle_tests): Instead dumping the hard coded target check-TESTS and registering its .PHONYsm, get them from... * check.am: here, new file.
Diffstat (limited to 'tests/check.test')
-rwxr-xr-xtests/check.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/check.test b/tests/check.test
new file mode 100755
index 000000000..2cf75083c
--- /dev/null
+++ b/tests/check.test
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+# Test Automake style tests.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+TESTS = frob.test
+END
+
+: > frob.test
+
+$AUTOMAKE || exit 1
+
+grep '^check-TESTS:' Makefile.in || exit 1
+grep '^check-DEJAGNU' Makefile.in && exit 1
+
+# check-TESTS is phony.
+sed -n '/^\.PHONY:/,/^$/p' Makefile.in | grep check-TESTS || exit 1
+
+exit 0