summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libgcrypt/files
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-08-26 15:23:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-30 10:33:35 +0100
commitde284c467a99fa17b98531206b0dc51a4401de64 (patch)
treed097496d992eadf1ae7dfad12d85b03267ce9fbf /meta/recipes-support/libgcrypt/files
parentae0b0649aa6db8045995a6f323a2ad88bb17befa (diff)
downloadpoky-de284c467a99fa17b98531206b0dc51a4401de64.tar.gz
libgcrypt: rewrite ptest
Instead of installing pieces of the build system, we can install the test driver (which can also be used to list the files needed) and run the tests directly. (From OE-Core rev: 5e07e6c376cf46d2788dcef53e9feba890c0236d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libgcrypt/files')
-rw-r--r--meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch18
-rw-r--r--meta/recipes-support/libgcrypt/files/run-ptest8
2 files changed, 25 insertions, 1 deletions
diff --git a/meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch b/meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch
new file mode 100644
index 0000000000..b9a607863d
--- /dev/null
+++ b/meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch
@@ -0,0 +1,18 @@
1Don't depend on a native libgpg-error to build the test driver, as it's
2an optional dependency for some C annotations.
3
4Upstream-Status: Inappropriate
5Signed-off-by: Ross Burton <ross.burton@arm.com>
6
7diff --git a/tests/testdrv.c b/tests/testdrv.c
8index 0ccde326..6d6abd57 100644
9--- a/tests/testdrv.c
10+++ b/tests/testdrv.c
11@@ -32,7 +32,6 @@
12 # include <fcntl.h>
13 # include <sys/wait.h>
14 #endif
15-#include <gpg-error.h> /* For some macros. */
16
17 #include "stopwatch.h"
18
diff --git a/meta/recipes-support/libgcrypt/files/run-ptest b/meta/recipes-support/libgcrypt/files/run-ptest
index 4818a061b4..c349ae1944 100644
--- a/meta/recipes-support/libgcrypt/files/run-ptest
+++ b/meta/recipes-support/libgcrypt/files/run-ptest
@@ -1,3 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2 2
3make -C build/tests runtest-TESTS 3# Run the tests in regression mode so they are quicker
4export GCRYPT_IN_REGRESSION_TEST=1
5# The 'random' test invokes itself, so we need to be sure that the test
6# directory is on PATH.
7export PATH=$PATH:.
8
9./testdrv --verbose