blob: c007060ee6b84f0af5583bbda2091ea6178188f7 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001Add 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
12Index: nettle-3.4/Makefile.in
13===================================================================
14--- nettle-3.4.orig/Makefile.in
15+++ nettle-3.4/Makefile.in
16@@ -55,6 +55,9 @@ clean distclean mostlyclean maintainer-c
17 echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done
18 $(MAKE) $@-here
19
20+buildtest:
21+ echo "Making $@ in testsuite" ; (cd testsuite && $(MAKE) $@)
22+
23 check-here:
24 true
25
26Index: nettle-3.4/testsuite/Makefile.in
27===================================================================
28--- nettle-3.4.orig/testsuite/Makefile.in
29+++ nettle-3.4/testsuite/Makefile.in
30@@ -131,6 +131,8 @@ $(TARGETS) $(EXTRA_TARGETS): testutils.$
31 # data.
32 VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes @IF_ASM@ --partial-loads-ok=yes
33
34+buildtest: $(TS_ALL)
35+
36 # The PATH update is for windows dlls, DYLD_LIBRARY_PATH is for OSX.
37 check: $(TS_ALL)
38 LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" DYLD_LIBRARY_PATH=../.lib \