summaryrefslogtreecommitdiff
path: root/tests/autotest.at
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-06-08 06:51:39 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-06-08 06:51:39 +0200
commit9c975f4d23f512e571b5bea7472120e89ba1f1f2 (patch)
treea942b2dea5693534a82c2362e1985b08f8b605f2 /tests/autotest.at
parentdaa7bf5d0f5ecfb504b990d2012ee9f3baac0425 (diff)
downloadautoconf-9c975f4d23f512e571b5bea7472120e89ba1f1f2.tar.gz
Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
* tests/autotest.at (AT@&t@_COPYRIGHT): New test. * tests/base.at (AC@&t@_COPYRIGHT): Likewise. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/autotest.at')
-rw-r--r--tests/autotest.at24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/autotest.at b/tests/autotest.at
index 72679156..a09e2c1e 100644
--- a/tests/autotest.at
+++ b/tests/autotest.at
@@ -135,6 +135,30 @@ m4_define([AT_CHECK_EGREP],
])
+## -------------- ##
+## AT_COPYRIGHT. ##
+## -------------- ##
+
+# Ensure the FSF notice as well as the user-provided one are present
+# in the head of the testsuite as well as the --version output.
+
+AT_CHECK_AT([AT@&t@_COPYRIGHT],
+[[AT_INIT([Testing AT@&t@_COPYRIGHT])
+AT_COPYRIGHT([[This is just a test notice, not a real one, so let's avoid
+words that may be matched by scanners for legal things,
+causing extra work for distributors.
+Multi-line values should be supported.
+]])
+]], [], [], [stdout], [], [], [
+AT_CHECK([grep 'Copyright.*Free Software Foundation' stdout], [], [ignore])
+AT_CHECK([grep 'This is just a test notice' stdout], [], [ignore])
+AT_CHECK([sed 50q micro-suite | grep 'Copyright.*Free Software Foundation'],
+ [], [ignore])
+AT_CHECK([sed 50q micro-suite | grep 'This is just a test notice'],
+ [], [ignore])],
+[--version])
+
+
## ------------------ ##
## Empty test suite. ##
## ------------------ ##