diff options
Diffstat (limited to 'meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch')
-rw-r--r-- | meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch b/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch new file mode 100644 index 0000000000..8ad6ba5ad5 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From 74080376904713a8e6cceefbc25c81512796bf0c Mon Sep 17 00:00:00 2001 | ||
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> | ||
8 | --- | ||
9 | Makefile.am | 3 +++ | ||
10 | configure.ac | 2 ++ | ||
11 | tests/Makefile.am | 6 ++++++ | ||
12 | 3 files changed, 11 insertions(+) | ||
13 | |||
14 | diff --git a/Makefile.am b/Makefile.am | ||
15 | index 843193f9f..816b09fec 100644 | ||
16 | --- a/Makefile.am | ||
17 | +++ b/Makefile.am | ||
18 | @@ -191,6 +191,9 @@ dist-hook: | ||
19 | mv ChangeLog $(distdir) | ||
20 | touch -c $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info | ||
21 | |||
22 | +install-ptest: | ||
23 | + $(MAKE) -C tests DESTDIR=$(DESTDIR)/tests $@ | ||
24 | + | ||
25 | .PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check local-code-coverage-output files-update AUTHORS | ||
26 | |||
27 | include $(top_srcdir)/cligen/cligen.mk | ||
28 | diff --git a/configure.ac b/configure.ac | ||
29 | index baff1c007..f9f596abf 100644 | ||
30 | --- a/configure.ac | ||
31 | +++ b/configure.ac | ||
32 | @@ -1150,6 +1150,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS) | ||
33 | |||
34 | AM_CONDITIONAL(NEEDS_LIBRT, test "$gnutls_needs_librt" = "yes") | ||
35 | |||
36 | +AM_EXTRA_RECURSIVE_TARGETS([buildtest-TESTS]) | ||
37 | + | ||
38 | AC_DEFINE([GNUTLS_INTERNAL_BUILD], 1, [We allow temporarily usage of deprecated functions - until they are removed.]) | ||
39 | |||
40 | hw_features= | ||
41 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
42 | index 573e911a0..e8a26f8b9 100644 | ||
43 | --- a/tests/Makefile.am | ||
44 | +++ b/tests/Makefile.am | ||
45 | @@ -644,6 +644,12 @@ SH_LOG_COMPILER = $(SHELL) | ||
46 | AM_VALGRINDFLAGS = --suppressions=$(srcdir)/suppressions.valgrind | ||
47 | LOG_COMPILER = $(LOG_VALGRIND) | ||
48 | |||
49 | +install-ptest: $(check_PROGRAMS) | ||
50 | + @$(INSTALL) -d $(DESTDIR) | ||
51 | + @for file in $^; do \ | ||
52 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ | ||
53 | + done | ||
54 | + | ||
55 | distclean-local: | ||
56 | rm -rf softhsm-*.db softhsm-*.config *.tmp tmp-* x509-crt-list-import-url.config.db port.lock.d | ||
57 | |||
58 | -- | ||
59 | 2.31.1 | ||
60 | |||