[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: texi2html tests are huge

From: Stefano Lattarini
Subject: Re: texi2html tests are huge
Date: Sun, 08 Jan 2012 09:23:16 +0100

HI Karl.

On 01/07/2012 11:27 PM, Karl Berry wrote:
> So I wonder about having  make check  just run a subset of basic tests,
> that everyone can do, and then have check-all to run them all.  
> Unfortunately, automake doesn't have any support for that.
But it's very easy to roll your own by building on the automake-provided
test harness interface; for example:

  $ cat Makefile.am
  basic_TESTS = foo.test bar.test
  more_TESTS = zardoz.test
  # Only the basic tests will be run by "make check" by default.
  TESTS = $(basic_TESTS)
  # But make it easy for the developers to run all the tests with
  # a simple "make check-all".
  all_TESTS = $(basic_TESTS) $(more_TESTS)
  check-all: all
        $(MAKE) $(AM_MAKEFLAGS) TESTS='$(all_TESTS)' check

  $ autoreconf -vi && ./configure && make

  $ make  check-TESTS
  make[1]: Entering directory `/tmp/foo'
  PASS: foo.test
  PASS: bar.test
  All 2 tests passed
  make[1]: Leaving directory `/tmp/foo'

  $ make check-all
  make  TESTS='foo.test bar.test zardoz.test' check
  make[1]: Entering directory `/tmp/foo'
  make  check-TESTS
  make[2]: Entering directory `/tmp/foo'
  PASS: foo.test
  PASS: bar.test
  PASS: zardoz.test
  All 3 tests passed
  make[2]: Leaving directory `/tmp/foo'
  make[1]: Leaving directory `/tmp/foo'

The idiom works both with and without the `parallel-tests' option BTW (tested).

> So maybe it's not feasible.  I haven't really thought about it.  Perhaps I
> should raise the point with the automakers.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]