blob: af77aec425e490acdff704c657c32ff179ccb60e [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001From 9225dfb91b6b5617cf2dff32d370cf027237d4c8 Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Wed, 12 Aug 2015 23:27:27 +0300
4Subject: [PATCH] Add target to only build tests (not run them)
5
6Not sending upstream as this is only a start of a solution to
7installable tests: It's useful for us already as is.
8
9Upstream-Status: Inappropriate [not a complete solution]
10
11Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
12
13---
14 Makefile.in | 3 +++
15 testsuite/Makefile.in | 2 ++
16 2 files changed, 5 insertions(+)
17
18diff --git a/Makefile.in b/Makefile.in
19index 2c25007..ef21b1b 100644
20--- a/Makefile.in
21+++ b/Makefile.in
22@@ -53,6 +53,9 @@ clean distclean mostlyclean maintainer-clean tags:
23 echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done
24 $(MAKE) $@-here
25
26+buildtest:
27+ echo "Making $@ in testsuite" ; (cd testsuite && $(MAKE) $@)
28+
29 check-here:
30 true
31
32diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
33index 91f6e2a..52f5c29 100644
34--- a/testsuite/Makefile.in
35+++ b/testsuite/Makefile.in
36@@ -105,6 +105,8 @@ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
37
38 VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes
39
40+buildtest: $(TS_ALL)
41+
42 # The PATH update is for locating dlls on w*ndows.
43 check: $(TS_ALL)
44 LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" srcdir="$(srcdir)" \