[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] Slighty improve tests acoutbs.test and acoutbs2.test.
From: |
Stefano Lattarini |
Subject: |
[PATCH 4/6] Slighty improve tests acoutbs.test and acoutbs2.test. |
Date: |
Sat, 26 Dec 2009 02:01:45 +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 514d3c148a06adfbfdcfa5a66ea7bd1bb68621cc Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Fri, 25 Dec 2009 23:21:25 +0100
Subject: [PATCH 4/6] Slighty improve tests acoutbs.test and acoutbs2.test.
* tests/acoutbs2.test: 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.test: Likewise, plus updated copyright years.
---
ChangeLog | 7 +++++++
tests/acoutbs.test | 14 ++++++++++++--
tests/acoutbs2.test | 12 +++++++++++-
3 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0dfd7b5..a4bd40b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-12-25 Stefano Lattarini <address@hidden>
+ Slighty improve tests acoutbs.test and acoutbs2.test.
+ * tests/acoutbs2.test: 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.test: Likewise, plus updated copyright years.
+
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..ce1fcf5 100755
--- a/tests/acoutbs.test
+++ b/tests/acoutbs.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2000, 2001, 2002, 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
@@ -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 8af1be2..6fda626 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
- [PATCH 0/6] Testsuite: check the list of test scripts, Stefano Lattarini, 2009/12/25
- [PATCH 1/6] Maint-check: check consistency of list of test scripts., Stefano Lattarini, 2009/12/25
- [PATCH 2/6] Add forgotten test scripts to $(TESTS)., Stefano Lattarini, 2009/12/25
- [PATCH 3/6] Fix test acoutbs2.test., Stefano Lattarini, 2009/12/25
- [PATCH 4/6] Slighty improve tests acoutbs.test and acoutbs2.test.,
Stefano Lattarini <=
- [PATCH 5/6] maint-check: refactoring to avoid code duplication, Stefano Lattarini, 2009/12/25
- [PATCH 6/6] Refactoring in makefiles, to avoid code duplication., Stefano Lattarini, 2009/12/25