Hi Karl,

Am Do., 24. Juli 2025 um 22:50 Uhr schrieb Karl Berry <k...@freefriends.org>:
>
> 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], [b...@example.com])
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

Attachment: myproject.tar.gz
Description: application/gzip

Reply via email to