blob: e3f5c6de7d00703093d2493b0205ee566ab7d703 [file] [log] [blame]
Andrew Geisslerc182c622020-05-15 14:13:32 -05001Add target to only build tests (not run them)
2
3Not sending upstream as this is only a start of a solution to
4installable tests: It's useful for us already as is.
5
6Upstream-Status: Inappropriate [not a complete solution]
7
8Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
9Refactored for 3.4
10Signed-off-by: Armin Kuster <akuster@mvista.com>
11---
12 Makefile.in | 3 +++
13 testsuite/Makefile.in | 2 ++
14 2 files changed, 5 insertions(+)
15
16diff --git a/Makefile.in b/Makefile.in
17index e5ccfc7..15c9275 100644
18--- a/Makefile.in
19+++ b/Makefile.in
20@@ -52,6 +52,9 @@ clean distclean mostlyclean maintainer-clean tags:
21 echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done
22 $(MAKE) $@-here
23
24+buildtest:
25+ echo "Making $@ in testsuite" ; (cd testsuite && $(MAKE) $@)
26+
27 check-here:
28 true
29
30diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
31index 3f5e5f6..8fd68a3 100644
32--- a/testsuite/Makefile.in
33+++ b/testsuite/Makefile.in
34@@ -122,6 +122,8 @@ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
35 # data.
36 VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes @IF_ASM@ --partial-loads-ok=yes
37
38+buildtest: $(TS_ALL)
39+
40 check: $(TS_ALL)
41 TEST_SHLIB_DIR="$(TEST_SHLIB_DIR)" \
42 srcdir="$(srcdir)" \
43--
442.17.1
45