rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | From 9225dfb91b6b5617cf2dff32d370cf027237d4c8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 3 | Date: Wed, 12 Aug 2015 23:27:27 +0300 |
| 4 | Subject: [PATCH] Add target to only build tests (not run them) |
| 5 | |
| 6 | Not sending upstream as this is only a start of a solution to |
| 7 | installable tests: It's useful for us already as is. |
| 8 | |
| 9 | Upstream-Status: Inappropriate [not a complete solution] |
| 10 | |
| 11 | Signed-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 | |
| 18 | diff --git a/Makefile.in b/Makefile.in |
| 19 | index 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 | |
| 32 | diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in |
| 33 | index 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)" \ |