Autotools.log test package output when test fails

I have an autotools based project. When the "make check" target fails, I see something like this:

============================================================================
Testsuite summary for 
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/python/test-suite.log
============================================================================
make[5]: *** [test-suite.log] Error 1

This is normal if this does not happen on a limited builder (in this case, buildpad buildd), where I see only the build log. Makefile.am in the affected directory is as follows:

EXTRA_DIST = test_inetdomain.py test_zone.py test_matcher.py test_dispatch.py test_nat.py test_log.py test_session.py test_stacking.py

noinst_SCRIPTS = runtest.sh

TESTS = runalltests.sh

.PHONY: mkzorp
mkzorp:
    make -C ../../zorp 

runtest.sh: mkzorp

What should I write in Makefile.am/what parameters that I must provide autoreconf / autoconf / which environment variables should I set to output the test to stdout / stderr?

+4
source share
3 answers

"" automake, .

, , , . , , 111 , - :

# Report outcome to console.
echo "${col}${res}${std}: $test_name"

- (, script):

if test $estatus != 0
then
    sed -e "s/^/$log_file:\t/" $log_file # but a cat is fine too
fi

.

-, : check-local, cat $TEST_LOGS makefile, , automake , , check-local, , check-TESTS .

+3

Fedora koji, .

RPM Fedora .

%check
make check || cat ./test-suite.log

, . .

, Launchpad .

+1

Previous versions of automake used to send output to standard output. I assume that this changed when parallel tests were introduced, so I ran into the same problem as Árpád.

You can enable the old behavior using a serial test harness by adding the following to Makefile.am:

AUTOMAKE_OPTIONS = serial-tests
0
source

All Articles