Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 1 | From 81861f7ba690956c064ebe8dce6c313951fa2a9f Mon Sep 17 00:00:00 2001 |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 2 | From: Ravineet Singh <ravineet.a.singh@est.tech> |
| 3 | Date: Tue, 10 Jan 2023 16:11:10 +0100 |
| 4 | Subject: [PATCH] gnutls: add ptest support |
| 5 | |
| 6 | Upstream-Status: Inappropriate [embedded specific] |
| 7 | Signed-off-by: Ravineet Singh <ravineet.a.singh@est.tech> |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 8 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 9 | --- |
| 10 | Makefile.am | 3 +++ |
| 11 | configure.ac | 2 ++ |
| 12 | tests/Makefile.am | 6 ++++++ |
| 13 | 3 files changed, 11 insertions(+) |
| 14 | |
| 15 | diff --git a/Makefile.am b/Makefile.am |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 16 | index 843193f..816b09f 100644 |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 17 | --- a/Makefile.am |
| 18 | +++ b/Makefile.am |
| 19 | @@ -191,6 +191,9 @@ dist-hook: |
| 20 | mv ChangeLog $(distdir) |
| 21 | touch -c $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info |
| 22 | |
| 23 | +install-ptest: |
| 24 | + $(MAKE) -C tests DESTDIR=$(DESTDIR)/tests $@ |
| 25 | + |
| 26 | .PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check local-code-coverage-output files-update AUTHORS |
| 27 | |
| 28 | include $(top_srcdir)/cligen/cligen.mk |
| 29 | diff --git a/configure.ac b/configure.ac |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 30 | index b25ba14..860ddef 100644 |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 31 | --- a/configure.ac |
| 32 | +++ b/configure.ac |
| 33 | @@ -1150,6 +1150,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS) |
| 34 | |
| 35 | AM_CONDITIONAL(NEEDS_LIBRT, test "$gnutls_needs_librt" = "yes") |
| 36 | |
| 37 | +AM_EXTRA_RECURSIVE_TARGETS([buildtest-TESTS]) |
| 38 | + |
| 39 | AC_DEFINE([GNUTLS_INTERNAL_BUILD], 1, [We allow temporarily usage of deprecated functions - until they are removed.]) |
| 40 | |
| 41 | hw_features= |
| 42 | diff --git a/tests/Makefile.am b/tests/Makefile.am |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 43 | index d530ad0..71c592f 100644 |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 44 | --- a/tests/Makefile.am |
| 45 | +++ b/tests/Makefile.am |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 46 | @@ -648,6 +648,12 @@ SH_LOG_COMPILER = $(SHELL) |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 47 | AM_VALGRINDFLAGS = --suppressions=$(srcdir)/suppressions.valgrind |
| 48 | LOG_COMPILER = $(LOG_VALGRIND) |
| 49 | |
| 50 | +install-ptest: $(check_PROGRAMS) |
| 51 | + @$(INSTALL) -d $(DESTDIR) |
| 52 | + @for file in $^; do \ |
| 53 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ |
| 54 | + done |
| 55 | + |
| 56 | distclean-local: |
| 57 | rm -rf softhsm-*.db softhsm-*.config *.tmp tmp-* x509-crt-list-import-url.config.db port.lock.d |
| 58 | |