diff options
author | Ross Burton <ross.burton@arm.com> | 2022-08-26 15:23:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-30 10:33:35 +0100 |
commit | de284c467a99fa17b98531206b0dc51a4401de64 (patch) | |
tree | d097496d992eadf1ae7dfad12d85b03267ce9fbf /meta/recipes-support/libgcrypt/files | |
parent | ae0b0649aa6db8045995a6f323a2ad88bb17befa (diff) | |
download | poky-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.patch | 18 | ||||
-rw-r--r-- | meta/recipes-support/libgcrypt/files/run-ptest | 8 |
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 @@ | |||
1 | Don't depend on a native libgpg-error to build the test driver, as it's | ||
2 | an optional dependency for some C annotations. | ||
3 | |||
4 | Upstream-Status: Inappropriate | ||
5 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
6 | |||
7 | diff --git a/tests/testdrv.c b/tests/testdrv.c | ||
8 | index 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 | ||
3 | make -C build/tests runtest-TESTS | 3 | # Run the tests in regression mode so they are quicker |
4 | export 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. | ||
7 | export PATH=$PATH:. | ||
8 | |||
9 | ./testdrv --verbose | ||