[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TAP support in automake
From: |
Russ Allbery |
Subject: |
Re: TAP support in automake |
Date: |
Sat, 31 Mar 2012 15:08:32 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Bob Friesenhahn <address@hidden> writes:
> The numbers are useful. TAP is documented to support reporting the number
> of tests at the end of the test run rather than at the beginning.
Yes, that of course works as well. With the basic C TAP library, you can
use plan_lazy() instead of plan() and the library will then figure out the
number of tests for you.
> Using your TAP test driver, and under the umbrella of Automake, how does
> one re-execute just one test in order to see the details of how it
> failed? The sample tests in your test harness expect that SOURCE and
> BUILD have already been set in the environment by Automake so just
> running via the suggested 'runtests -o' results in a failed test.
SOURCE and BUILD are only not set when you're building the C TAP Harness
source out of its distribution tarball, since that creates a generic
runtests binary. When incorporating the test framework into another
package, you would do (from README):
check_PROGRAMS = tests/runtests
tests_runtests_CPPFLAGS = -DSOURCE='"$(abs_top_srcdir)/tests"' \
-DBUILD='"$(abs_top_builddir)/tests"'
which will take care of defining SOURCE and BUILD, and then tests/runtests
-o <test> will work as expected.
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>
- Re: automake 1.11.3 check-TESTS and command line length, Bob Friesenhahn, 2012/03/31
- Re: automake 1.11.3 check-TESTS and command line length, Bob Friesenhahn, 2012/03/31
- TAP support in automake (was: Re: automake 1.11.3 check-TESTS and command line length), Stefano Lattarini, 2012/03/31
- Re: TAP support in automake (was: Re: automake 1.11.3 check-TESTS and command line length), Bob Friesenhahn, 2012/03/31
- Re: TAP support in automake, Russ Allbery, 2012/03/31
- Re: TAP support in automake, Bob Friesenhahn, 2012/03/31
- Re: TAP support in automake,
Russ Allbery <=
- Re: TAP support in automake, Stefano Lattarini, 2012/03/31
- Re: TAP support in automake, Bob Friesenhahn, 2012/03/31
- Re: TAP support in automake, Russ Allbery, 2012/03/31
- Re: TAP support in automake, Bob Friesenhahn, 2012/03/31
- Re: TAP support in automake, Stefano Lattarini, 2012/03/31
- Re: TAP support in automake, Russ Allbery, 2012/03/31