Skip to content
Snippets Groups Projects
Commit 177b7410 authored by Niels Möller's avatar Niels Möller
Browse files

Skip side-channel tests of rsa-sec-decrypt when built with mini-gmp.

parent 97f9b45b
No related branches found
No related tags found
No related merge requests found
2023-10-06 Niels Möller <nisse@lysator.liu.se> 2023-10-06 Niels Möller <nisse@lysator.liu.se>
* testsuite/rsa-sec-decrypt-test.c (test_main): Skip side-channel
test if built with mini-gmp.
* testsuite/sc-valgrind.sh (with_valgrind): Pass
--exit-on-first-error=yes.
* aclocal.m4 (NETTLE_PROG_VALGRIND): New macro. * aclocal.m4 (NETTLE_PROG_VALGRIND): New macro.
* configure.ac: Use it. * configure.ac: Use it.
* testsuite/Makefile.in (TS_SH): Include side-channel tests only * testsuite/Makefile.in (TS_SH): Include side-channel tests only
......
...@@ -70,6 +70,10 @@ test_main(void) ...@@ -70,6 +70,10 @@ test_main(void)
mpz_t garbage; mpz_t garbage;
unsigned count; unsigned count;
#if NETTLE_USE_MINI_GMP
if (test_side_channel)
SKIP();
#endif
rsa_private_key_init(&key); rsa_private_key_init(&key);
rsa_public_key_init(&pub); rsa_public_key_init(&pub);
mpz_init(gibberish); mpz_init(gibberish);
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
# using valgrind. # using valgrind.
with_valgrind () { with_valgrind () {
type valgrind >/dev/null || exit 77 type valgrind >/dev/null 2>&1 || exit 77
NETTLE_TEST_SIDE_CHANNEL=1 valgrind -q --error-exitcode=1 "$@" NETTLE_TEST_SIDE_CHANNEL=1 valgrind -q --exit-on-first-error=yes --error-exitcode=1 "$@"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment