bug#79086: check-DEJAGNU should produce less noise

Marc Nieper-Wißkirchen <[email protected]> Fri, 25 Jul 2025 10:10:31 +0200
Newsgroups gmane.comp.sysutils.automake.bugs
Message-ID <CAEYrNrRwSgBaA06X1xnoivXuLOWE9PLn2o88pZYLbPgU8cpq6Q@mail.gmail.com>
--00000000000073fd88063abc7a77
Content-Type: text/plain; charset="UTF-8"

Hi Karl,

Am Do., 24. Juli 2025 um 22:50 Uhr schrieb Karl Berry <[email protected]>:
>
> Hi Marc,
>
>     At least in connection with the Automake running in silent mode, the
>     check-DEJAGNU target should produce no noise in the output.
>
> Thanks for the message. Sounds sensible to me, for silent mode. Do you
> have a sample Makefile.am/configure.ac?  It would help me not to have to
> construct them from scratch. --thanks, karl.

Sure. Here is a tree for a minimal project (see also the attached archive):

# ./configure.ac
AC_INIT([myproject], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([foreign dejagnu])
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
###

# ./Makefile.am
TESTS = ok

ok:
    $(AM_V_GEN)echo "#!/bin/sh" >$@
    @chmod a+x $@

CLEANFILES = ok

EXTRA_DIST = testsuite/config/unix.exp testsuite/lib/myproject.exp
testsuite/myproject.tests/myproject.exp
###

# ./testsuite/myproject.tests/myproject.exp
pass "trivial test"
###

# ./testsuite/config/unix.exp
# empty file
###

# ./testsuite/lib/myproject.exp
# empty file
###

You should then be able to run:
$ autoreconf -i
$ ./configure [--enable-silent]
$ make check-DEJAGNU
$ make check-TESTS

As you see, I added two test cases, one using the Dejagnu test driver
(that produces the noise) and one that uses the modern Automake
parallel test driver (which does not produce any noise, regardless of
the setting of the silent flag).

I hope you find this helpful.

Thanks,

Marc

--00000000000073fd88063abc7a77
Content-Type: application/gzip; name="myproject.tar.gz"
Content-Disposition: attachment; filename="myproject.tar.gz"
Content-Transfer-Encoding: base64
Content-ID: <f_mdijk6cm0>
X-Attachment-Id: f_mdijk6cm0

H4sIAAAAAAACA+2YXW/aMBSGc9v8Co/2gmpT4pjYkSZtImJpFa3ANMI0CVVRSA24kA/lo6L/fg5b
2daNdVAaOu08N5Z9rOTizfvm2NFtmiXXPCx05cnAEsui1WhYFP843qEYFJuYtUxmEgUbxGJYQVSp
gTIvggwhJYoFT3m2cd9D9X+UaK1/wfMiL0XB9QPq35LSS/0pxgz0P5T+6zVttabXqD+lptxHZN0A
/Z+L/t/nfJnuqD9j5mb9ifmz/wmxDKk/Bv2fnDTIc9QoMnEjggWq9G6oCvDf8Dv/h0k8EdP9tQFb
5T9ryf8/Iwzy/9D6l7FY7pj4W+a/Qe/1f1ZVhvyvgWPEo7S4RROx4BD8kP+V/xdivNcz4A7nP3kO
gPw/pP6P7fkflf8EtzCB/If8B+rz/9eur8y4FoT7fcdD/jeYdT//iWmB/+vA7vhuz/Wao/WHcPkK
jbBmVMO4nLb5MojSBdfCJLo8Ve3uartvD71+137vNEeTJONiGqMrfh1M47La0/E7/d6Ze+6fuRfO
oNkN5ryKl1WlP/Q+DD1Imufn/zuZtCBS6vU/segv9/+yJQD/14DnDLwBeoOSuaom89fq0UlTevyT
f+70Tnk4S1Dj+IU+FrGezxro7UlbPWqHsyi5QsHLJZJTtXPh2L2V0b89xfnsfbT9d+7AkwsbLxXQ
H9pN9JdX0ZAiAAAAAAAAALAdXwBfdBGWACgAAA==
--00000000000073fd88063abc7a77--