[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "make check" in the svn tree

From: Jim Blandy <jimb_at_savonarola.red-bean.com>
Date: 2000-09-28 19:18:35 CEST

Ben Collins-Sussman <sussman@newton.collab.net> writes:

> `check' is a target automatically supplied by automake. However, we
> don't like it, so our Makefile.am's that live in "test" subdirectories
> redefine this target with our own script:
>
> ## We're overriding automake's own `check' rule, because it's extremely
> ## inflexible; we want better control over automated-test output.
> check:
> @echo > tests.log
> @for prog in $(SVN_TESTS); do \
> echo; \
> echo -n "Running all sub-tests in $$prog..."; \
> ./$$prog >> tests.log; \
> if [ $$? -eq 0 ]; \
> then \
> echo "SUCCESS"; \
> else \
> echo; \
> echo "at least one sub-test FAILED, check tests.log:"; echo; \
> cat tests.log | grep FAIL; \
> fi; \
> done

If we really want to use this, could we put it in a script somewhere,
and have the `check' rules invoke the script with $(SVN_TESTS) as an
argument? That would be a bit nicer than having a zillion copies of
it.
Received on Sat Oct 21 14:36:09 2006

This is an archived mail posted to the Subversion Dev mailing list.