]> granicus.if.org Git - cgit/commitdiff
tests: add CGIT_TEST_OPTS variable to Makefile
authorJohn Keeping <john@keeping.me.uk>
Sun, 12 Jan 2014 19:46:42 +0000 (19:46 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 12 Jan 2014 22:03:54 +0000 (23:03 +0100)
This allows running the entire test suite with a set of command-line
options.  For example:

make test CGIT_TEST_OPTS=--valgrind

Signed-off-by: John Keeping <john@keeping.me.uk>
tests/Makefile

index 8c6c236ba09104821de44b17d1fb32dd4f2e5255..1556475cbb22f0f71b483f0f573fab36a06efd51 100644 (file)
@@ -5,7 +5,7 @@ T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
 all: $(T)
 
 $(T):
-       @./$@
+       @./$@ $(CGIT_TEST_OPTS)
 
 clean:
        $(RM) -rf trash