From: Bruno Haible <bruno@clisp.org>
Date: Thu, 10 Jun 2021 19:43:59 +0000 (+0200)
Subject: Clarify where to report test failures from Gnulib tests.
X-Git-Tag: v1.0~2832
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d465dd70e1ec5fe332160780eb66511028f5897b;p=gnulib.git

Clarify where to report test failures from Gnulib tests.

* gnulib-tool (func_emit_tests_Makefile_am): Emit a dependency of
'check-am' on 'check-notice' that prints a notice.
---

diff --git a/ChangeLog b/ChangeLog
index f95d389028..7c5e6be961 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-06-10  Bruno Haible  <bruno@clisp.org>
+
+	Clarify where to report test failures from Gnulib tests.
+	* gnulib-tool (func_emit_tests_Makefile_am): Emit a dependency of
+	'check-am' on 'check-notice' that prints a notice.
+
 2021-06-10  Bruno Haible  <bruno@clisp.org>
 
 	Clarify that compiler warnings in the Gnulib tests can be ignored.
diff --git a/gnulib-tool b/gnulib-tool
index d41d58ce84..4f97e63380 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -4275,6 +4275,14 @@ func_emit_tests_Makefile_am ()
   echo "	@echo '## You can ignore compiler warnings in this directory.  ##'"
   echo "	@echo '## ---------------------------------------------------- ##'"
   echo
+  # Arrange to print a message before executing the tests in this directory.
+  echo "check-am: check-notice"
+  echo "check-notice:"
+  echo "	@echo '## ---------------------------------------------------- ##'"
+  echo "	@echo '## ------------------- Gnulib tests ------------------- ##'"
+  echo "	@echo '## Please report test failures to <bug-gnulib@gnu.org>. ##'"
+  echo "	@echo '## ---------------------------------------------------- ##'"
+  echo
   echo "# Clean up after Solaris cc."
   echo "clean-local:"
   echo "	rm -rf SunWS_cache"