+2011-09-08 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ maintcheck: fix spurious failures
+ * tests/gen-testsuite-part (write_wrapper_script): More uses of
+ creative quoting in the generated tests, to avoid triggering
+ failures in the `sc_tests_Exit_not_exit' maintcheck.
+ * Makefile.am (sc_tests_tap_plan): It's OK for auto-generated
+ TAP tests that sources an hand-written one not to declare a TAP
+ plan: the sourced test will do so.
+ * tests/Makefile.am (checked_test_extensions): Don't define
+ anymore, the default value `$(TEST_EXTENSIONS)' is correct now.
+ (expected_list_of_tests): Don't define anymore, the default
+ value `$(TESTS)' is correct now.
+
2011-09-06 Stefano Lattarini <stefano.lattarini@gmail.com>
aclocal: more granularity in acdir overriding
with_plan=`echo $$with_plan`; \
ok=:; \
for t in $(srcdir)/tests/*.tap; do \
- case " $$with_plan " in \
- *" $$t "*) ;; \
- *) ok=false; echo $$t;; \
+ case " $$with_plan " in *" $$t "*) continue;; esac; \
+## It's ok for an *auto-generated* test sourcing an hand-written one not
+## to declare a TAP plan: that will be done by the sourced test.
+ case $$t in \
+ *-w.tap) \
+ t2=`echo $$t | sed -e 's|.*/||' -e 's/-w\.tap$$/.tap/'` \
+ && grep -E "^ *\\. *[^ ]*/$$t2\\b" $$t >/dev/null \
+ && continue || : ;; \
esac; \
+ ok=false; echo $$t; \
done; \
$$ok || { \
echo 'The tests above do not declare a TAP plan.' 1>&2; \
with_plan=`echo $$with_plan`; \
ok=:; \
for t in $(srcdir)/tests/*.tap; do \
- case " $$with_plan " in \
- *" $$t "*) ;; \
- *) ok=false; echo $$t;; \
+ case " $$with_plan " in *" $$t "*) continue;; esac; \
+ case $$t in \
+ *-w.tap) \
+ t2=`echo $$t | sed -e 's|.*/||' -e 's/-w\.tap$$/.tap/'` \
+ && grep -E "^ *\\. *[^ ]*/$$t2\\b" $$t >/dev/null \
+ && continue || : ;; \
esac; \
+ ok=false; echo $$t; \
done; \
$$ok || { \
echo 'The tests above do not declare a TAP plan.' 1>&2; \
.PHONY: check-no-repeated-test-name
## Checking the list of tests.
-checked_test_extensions = .test .tap
-expected_list_of_tests = $(handwritten_TESTS)
include $(top_srcdir)/CheckListOfTests.am
clean-local: clean-local-check
tap-diagnostic-custom-w.test tap-driver-stderr-w.test \
tap-doc-w.test tap-more-w.test tap-more2-w.test \
tap-recheck-w.test
-checked_test_extensions = .test .tap
-expected_list_of_tests = $(handwritten_TESTS)
am__tmk = tests-in-makefile-list.tmp
am__tfs = tests-on-filesystem-list.tmp
am__tdf = diff-in-tests-lists.tmp
for dir in . "\$testsrcdir"; do
if test -f "\$dir/$wrapped_test"; then
echo "\$0: will source \$dir/$wrapped_test"
- . "\$dir/$wrapped_test"; exit \$?
+ # FIXME: creative quoting to please maintainer-check.
+ . "\$dir/$wrapped_test"; exit "\$?"
fi
done
echo "\$0: cannot find wrapped test \\`$wrapped_test'" >&2
- exit 99
+ # FIXME: creative quoting to please maintainer-check.
+ exit '99'
EOF
}