sim: testsuite: add more silent build rules
authorMike Frysinger <vapier@gentoo.org>
Wed, 17 Nov 2021 00:23:58 +0000 (19:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 17 Nov 2021 00:33:57 +0000 (19:33 -0500)
site.exp is still verbose, but that comes from automake, so have
to get it fixed upstream.

sim/Makefile.in
sim/testsuite/local.mk

index 07c89377e97425ca19703e4206a4efa43ce41399..d33720b6bb8a4460f89c0853742b7ab7c45cf208 100644 (file)
@@ -1257,6 +1257,12 @@ common_libcommon_a_SOURCES = \
 
 # Tweak the site.exp so it works with plain `runtest` from user.
 EXTRA_DEJAGNU_SITE_CONFIG = site-srcdir.exp
+
+# Custom verbose test variables that automake doesn't provide (yet?).
+AM_V_RUNTEST = $(AM_V_RUNTEST_@AM_V@)
+AM_V_RUNTEST_ = $(AM_V_RUNTEST_@AM_DEFAULT_V@)
+AM_V_RUNTEST_0 = @echo "  RUNTEST  $(RUNTESTFLAGS)";
+AM_V_RUNTEST_1 = 
 testsuite_common_CPPFLAGS = \
        -I$(srcdir)/common \
        -I$(srcroot)/include \
@@ -2429,10 +2435,10 @@ common/version.c-stamp: $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(src
 @SIM_ENABLE_IGEN_TRUE@ $(AM_V_CC)$(COMPILE_FOR_BUILD) -DMAIN -c $< -o $@
 
 site-srcdir.exp: Makefile
-       echo "set srcdir \"$(srcdir)/testsuite\"" > $@
+       $(AM_V_GEN)echo "set srcdir \"$(srcdir)/testsuite\"" > $@
 
 check-DEJAGNU: site.exp
-       LC_ALL=C; export LC_ALL; \
+       $(AM_V_RUNTEST)LC_ALL=C; export LC_ALL; \
        EXPECT=${EXPECT} ; export EXPECT ; \
        runtest=$(RUNTEST); \
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
index 82eb70de72aa5247da5006851da7ece6ab76f908..4da63ea49fa011aba6ccc96a04e3f11ceec4b0d8 100644 (file)
 # Tweak the site.exp so it works with plain `runtest` from user.
 EXTRA_DEJAGNU_SITE_CONFIG = site-srcdir.exp
 
+# Custom verbose test variables that automake doesn't provide (yet?).
+AM_V_RUNTEST = $(AM_V_RUNTEST_@AM_V@)
+AM_V_RUNTEST_ = $(AM_V_RUNTEST_@AM_DEFAULT_V@)
+AM_V_RUNTEST_0 =  @echo "  RUNTEST  $(RUNTESTFLAGS)";
+AM_V_RUNTEST_1 =
+
 site-srcdir.exp: Makefile
-       echo "set srcdir \"$(srcdir)/testsuite\"" > $@
+       $(AM_V_GEN)echo "set srcdir \"$(srcdir)/testsuite\"" > $@
 
 check-DEJAGNU: site.exp
-       LC_ALL=C; export LC_ALL; \
+       $(AM_V_RUNTEST)LC_ALL=C; export LC_ALL; \
        EXPECT=${EXPECT} ; export EXPECT ; \
        runtest=$(RUNTEST); \
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \