automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/4] Slighty improve tests acoutbs.test and acoutbs2.test.


From: Stefano Lattarini
Subject: [PATCH 4/4] Slighty improve tests acoutbs.test and acoutbs2.test.
Date: Fri, 11 Dec 2009 15:41:38 +0100
User-agent: KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.2; i686; ; )

In this patch, I extend the test acoutbs2.test, mostly to be sure that 
I correctly understood the semantic of its checks when I did the 
previous change.  For consistency, I also extend in a similar fashion 
the test acoutbs.test, as it's very similar to acoutbs2.test (both in 
code and in the tested sematic).
From 9a5b137e2903dc6cefa03949d6fd6545c9e129cb Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Fri, 11 Dec 2009 13:30:40 +0100
Subject: [PATCH 4/4] Slighty improve tests acoutbs.test and acoutbs2.test.

* tests/acoutbs: Enable `errexit' shell flag.  Check that autoconf
and configure work, that the file `zot' is created by configure,
and that no file containing a backslash in its name is created.
* tests/acoutbs: Likewise.
---
 ChangeLog           |    8 ++++++++
 tests/acoutbs.test  |   12 +++++++++++-
 tests/acoutbs2.test |   12 +++++++++++-
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1efa8b2..9337614 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-12-11  Stefano Lattarini  <address@hidden>
 
+       Slighty improve tests acoutbs.test and acoutbs2.test.
+       * tests/acoutbs: Enable `errexit' shell flag.  Check that autoconf
+       and configure work, that the file `zot' is created by configure,
+       and that no file containing a backslash in its name is created.
+       * tests/acoutbs: Likewise.
+
+2009-12-11  Stefano Lattarini  <address@hidden>
+
        Fix test acoutbs2.test.
        * tests/acoutbs2: In the generated configure.in: add proper calls
        to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
diff --git a/tests/acoutbs.test b/tests/acoutbs.test
index 0f5eb48..972effc 100755
--- a/tests/acoutbs.test
+++ b/tests/acoutbs.test
@@ -19,6 +19,8 @@
 
 . ./defs || Exit 1
 
+set -e
+
 cat > configure.in << 'END'
 AC_INIT
 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
@@ -29,5 +31,13 @@ END
 : > Makefile.am
 : > zot.in
 
-$ACLOCAL || Exit 1
+$ACLOCAL
+$AUTOCONF
 $AUTOMAKE
+
+./configure
+
+test -f zot || Exit 1
+ls -a | grep '\\' && Exit 1
+
+:
diff --git a/tests/acoutbs2.test b/tests/acoutbs2.test
index 02ff608..045a664 100755
--- a/tests/acoutbs2.test
+++ b/tests/acoutbs2.test
@@ -19,6 +19,8 @@
 
 . ./defs || Exit 1
 
+set -e
+
 cat > configure.in << 'END'
 AC_INIT
 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
@@ -34,5 +36,13 @@ END
 : > Makefile.am
 : > zot.in
 
-$ACLOCAL || Exit 1
+$ACLOCAL
+$AUTOCONF
 $AUTOMAKE
+
+./configure
+
+test -f zot || Exit 1
+ls -a | grep '\\' && Exit 1
+
+:
-- 
1.6.5


reply via email to

[Prev in Thread] Current Thread [Next in Thread]