automake-commit
[Top][All Lists]
Advanced

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

[Automake-commit] [SCM] GNU Automake branch, testsuite-work, updated. v1


From: Stefano Lattarini
Subject: [Automake-commit] [SCM] GNU Automake branch, testsuite-work, updated. v1.11-1340-gfb6591b
Date: Sun, 11 Sep 2011 16:52:50 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=fb6591b36efb28d000b0f828b6f4d8a3f19de9e9

The branch, testsuite-work has been updated
       via  fb6591b36efb28d000b0f828b6f4d8a3f19de9e9 (commit)
      from  317cf071f3835ef0f36fc3c111a6db7bbdebf644 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fb6591b36efb28d000b0f828b6f4d8a3f19de9e9
Author: Stefano Lattarini <address@hidden>
Date:   Sun Sep 11 18:51:03 2011 +0200

    tests: convert another test to TAP
    
    * tests/primary-prefix-invalid-couples.test: Renamed ...
    * tests/primary-prefix-invalid-couples.tap: ... to this, and
    converted to the use of the TAP protocols (this requires only
    very minimal changes this time).
    * tests/list-of-tests.mk: Update.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |    9 +++++++++
 tests/Makefile.in                                  |    2 +-
 tests/list-of-tests.mk                             |    2 +-
 ...les.test => primary-prefix-invalid-couples.tap} |   17 ++++++++++++-----
 4 files changed, 23 insertions(+), 7 deletions(-)
 rename tests/{primary-prefix-invalid-couples.test => 
primary-prefix-invalid-couples.tap} (92%)

diff --git a/ChangeLog b/ChangeLog
index de0fa2c..9c19124 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-09-11  Stefano Lattarini  <address@hidden>
 
+       tests: convert another test to TAP
+       * tests/primary-prefix-invalid-couples.test: Renamed ...
+       * tests/primary-prefix-invalid-couples.tap: ... to this, and
+       converted to the use of the TAP protocols (this requires only
+       very minimal changes this time).
+       * tests/list-of-tests.mk: Update.
+
+2011-09-11  Stefano Lattarini  <address@hidden>
+
        tests: fix spurious failure on fast machines
        * tests/aclocal-acdir.test: Avoid spurious failures due to caching
        issues, by cleaning the autom4te cache between all the aclocal
diff --git a/tests/Makefile.in b/tests/Makefile.in
index e9fa68d..101a193 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -1052,7 +1052,7 @@ prefix.test \
 primary.test \
 primary2.test \
 primary3.test \
-primary-prefix-invalid-couples.test \
+primary-prefix-invalid-couples.tap \
 primary-prefix-valid-couples.test \
 primary-prefix-couples-force-valid.test \
 primary-prefix-couples-documented-valid.test \
diff --git a/tests/list-of-tests.mk b/tests/list-of-tests.mk
index 6cadef4..2a27bd1 100644
--- a/tests/list-of-tests.mk
+++ b/tests/list-of-tests.mk
@@ -736,7 +736,7 @@ prefix.test \
 primary.test \
 primary2.test \
 primary3.test \
-primary-prefix-invalid-couples.test \
+primary-prefix-invalid-couples.tap \
 primary-prefix-valid-couples.test \
 primary-prefix-couples-force-valid.test \
 primary-prefix-couples-documented-valid.test \
diff --git a/tests/primary-prefix-invalid-couples.test 
b/tests/primary-prefix-invalid-couples.tap
similarity index 92%
rename from tests/primary-prefix-invalid-couples.test
rename to tests/primary-prefix-invalid-couples.tap
index 4791707..b51fca3 100755
--- a/tests/primary-prefix-invalid-couples.test
+++ b/tests/primary-prefix-invalid-couples.tap
@@ -22,6 +22,8 @@
 
 . ./defs || Exit 1
 
+plan_ "later"
+
 oIFS=$IFS # Saved for later.
 
 : > ltmain.sh
@@ -40,7 +42,7 @@ AM_PATH_PYTHON
 AM_PATH_LISPDIR
 END
 
-$ACLOCAL
+$ACLOCAL || fatal_ "aclocal failure"
 
 # Please keep this list in sync with the list of "Directory Variables"
 # in the GNU Coding Standards and with the list additional directory
@@ -163,14 +165,18 @@ cat Makefile.am
 
 set -x # Restore shell xtraces from now on.
 
-AUTOMAKE_fails -a
+AUTOMAKE_fails \
+  -d "'automake -a' error out on mismatched prefix/primary couples" \
+  -- --add-missing
 
 while read lineno prefix primary; do
   test -n "$prefix" && test -n "$primary" && test 0 -lt $lineno \
     || fatal_ "internal error in 'all.list'"
   grep "^${prefix}_${primary}$" allow.list >/dev/null && continue
   errmsg_rx=".*${prefix}dir.* not a legitimate directory .*$primary"
-  grep "^Makefile\\.am:$lineno: $errmsg_rx" stderr || Exit 1
+  command_ok_ \
+    "mismatched prefix/primary in ${prefix}_${primary}" \
+    grep "^Makefile\\.am:$lineno: $errmsg_rx" stderr
 done <all.list
 
 # Check that automake really failed only for the expected reason(s).
@@ -179,7 +185,8 @@ grep -v 'dir.* not a legitimate directory' stderr && Exit 1
 # Check that the same failures are present without the `--add-missing'
 # option.
 mv stderr stderr.old
-AUTOMAKE_fails
-diff stderr.old stderr
+AUTOMAKE_fails -d "automake error out on mismatched prefix/primary couples"
+command_ok_ "... and with the same diagnostic of 'automake -a'" \
+            diff stderr.old stderr
 
 :


hooks/post-receive
-- 
GNU Automake



reply via email to

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