+2011-09-11 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ 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 <stefano.lattarini@gmail.com>
tests: fix spurious failure on fast machines
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 \
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 \
. ./defs || Exit 1
+plan_ "later"
+
oIFS=$IFS # Saved for later.
: > ltmain.sh
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
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).
# 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
: