This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/N] test-suite improvement - PASS/FAIL: initial patch
On Mon, 17 Sep 2012, Jeff Law wrote:
> Do those files outside the test-skeleton framework exit with a usable status?
> If so we could wrap exit to print the pass/fail message. IIRC this is what
> the gcc testsuite does under the hood to make life easier for remote embedded
> testing.
C tests outside test-skeleton will exit with a usable status (that's the
only way they can end up failing), but they should just be converted to
test-skeleton rather than doing something fancier with wrapping exit.
Shell script tests can't readily use either test-skeleton or an exit
wrapper.
I think examining exit status in the makefile is appropriate as a way of
determining the final result of a test (while still making more tests use
standard infrastructure such as test-skeleton as far as possible - but for
benefits such as timeouts rather than for status reporting).
--
Joseph S. Myers
joseph@codesourcery.com