Makefile: add support for 'make testonly'
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Nov 2020 09:38:49 +0000 (10:38 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 27 Jan 2021 09:56:29 +0000 (09:56 +0000)
That skips any attempt to recompile before running the tests.
Some times that's useful for debugging and we'll
use it to split the build and test stages in autobuild and gitlab-ci
later.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Makefile

index 0b7b0ae8866170c2c38280322ed77cb1c27c420d..7f5960d5191c154e0290a2c07f8c33f9d8f7f8e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,9 @@ uninstall:
 test:
        $(WAF) test $(TEST_OPTIONS)
 
+testonly:
+       $(WAF) testonly $(TEST_OPTIONS)
+
 perftest:
        $(WAF) test --perf-test $(TEST_OPTIONS)