[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to change the behaviour of "make check"?
From: |
Thien-Thi Nguyen |
Subject: |
Re: how to change the behaviour of "make check"? |
Date: |
17 Sep 2003 13:47:28 -0400 |
Ireneusz SZCZESNIAK <address@hidden> writes:
But I only want "make" to ignore errors from running tests, not all
errors. My test scripts are automatically generated by "make" and
then run. If "make" fails to generate such a script, then I want
"make" to report the error and stop.
there is a documented Makefile.am var TESTS_ENVIRONMENT which you can use to
not only set various env var variables, but specify a completely different
interpreter aside from the bourne shell, to run the tests. for example, if
your tests write some debugging info to a separate LOGFILE, then you might use
this script:
#!/bin/sh
# fake-sh --- customized replacement for /bin/sh
/bin/sh "$@" # first, do it
status=$? # save the return value
if grep -q REALLYFAIL LOGFILE ; then
exit $status
else
exit 0 # fake success
fi
# fake-sh ends here
by specifying
TESTS_ENVIRONMENT = FOO=1 BAR=2 $(top_srcdir_absolute)/fake-sh
(the nicely formatted messages will be wrong (since you are faking success
some of the time), but presumably you are smarter than to believe w/o scrutiny
anything you read on computer screen, like this message.... ;-)
thi
- how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/15
- Re: how to change the behaviour of "make check"?, Bernd Jendrissek, 2003/09/16
- Re: how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/17
- Re: how to change the behaviour of "make check"?,
Thien-Thi Nguyen <=
- Re: how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/17
- Re: how to change the behaviour of "make check"?, Thien-Thi Nguyen, 2003/09/17
- Re: how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/17
- Re: how to change the behaviour of "make check"?, Raja R Harinath, 2003/09/17
- Re: how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/19
- Re: how to change the behaviour of "make check"?, Eric Siegerman, 2003/09/17
- Message not available
- Re: how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/17
- Message not available
- Re: how to change the behaviour of "make check"?, Ireneusz SZCZESNIAK, 2003/09/17