Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 1 | Add target to only build tests (not run them) |
| 2 | |
| 3 | Not sending upstream as this is only a start of a solution to |
| 4 | installable tests: It's useful for us already as is. |
| 5 | |
| 6 | Upstream-Status: Inappropriate [not a complete solution] |
| 7 | |
| 8 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 9 | Refactored for 3.4 |
| 10 | Signed-off-by: Armin Kuster <akuster@mvista.com> |
| 11 | --- |
| 12 | Makefile.in | 3 +++ |
| 13 | testsuite/Makefile.in | 2 ++ |
| 14 | 2 files changed, 5 insertions(+) |
| 15 | |
| 16 | diff --git a/Makefile.in b/Makefile.in |
| 17 | index 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 | |
| 30 | diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in |
| 31 | index 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 | -- |
| 44 | 2.17.1 |
| 45 | |