cgit

commit a52aaa90dab1d95f9df383d2cb3f7c428ab849fe

Author: John Keeping <john@keeping.me.uk>

tests: add CGIT_TEST_OPTS variable to Makefile

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 | 2 +-


diff --git a/tests/Makefile b/tests/Makefile
index 8c6c236ba09104821de44b17d1fb32dd4f2e5255..1556475cbb22f0f71b483f0f573fab36a06efd51 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -5,7 +5,7 @@
 all: $(T)
 
 $(T):
-	@./$@
+	@./$@ $(CGIT_TEST_OPTS)
 
 clean:
 	$(RM) -rf trash