]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
tests-extra: call keymgr keystore test if not ASAN master
authorDaniel Salzman <daniel.salzman@nic.cz>
Sun, 9 Aug 2026 17:09:23 +0000 (19:09 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sun, 9 Aug 2026 17:09:23 +0000 (19:09 +0200)
tests-extra/tests/dnssec/softhsm/test.py

index 4418927c8df3d791e0a28eae7206d12b8bb52eea..0c74c11db629e6669395891efe7c2f43bcdba17a 100644 (file)
@@ -59,9 +59,12 @@ key_ids = [key.split()[0] for key in keys.strip().splitlines()]
 for key_id in key_ids:
     isset(keys2.has_key(key_id), f"key {key_id} in keys2")
 
 for key_id in key_ids:
     isset(keys2.has_key(key_id), f"key {key_id} in keys2")
 
-# Run keystore test and benchmark
-_, out, _ = Keymgr.run_check(knot1.confile, "keys1", "keystore-test", env=keys1.env())
-isset("PKCS #11" in out, "keystore-test")
+# Run keystore test (only with Valgrind due to leaks in Ed25518 Ed448)
+if knot1.valgrind:
+    _, out, _ = Keymgr.run_check(knot1.confile, "keys1", "keystore-test", env=keys1.env())
+    isset("PKCS #11" in out, "keystore-test")
+
+# Run keystore benchmark
 _, out, _ = Keymgr.run_check(knot1.confile, "keys1", "keystore-bench", "1", "ECDSAP256SHA256", env=keys1.env())
 isset("ECDSAP256SHA256" in out, "keystore-bench")
 
 _, out, _ = Keymgr.run_check(knot1.confile, "keys1", "keystore-bench", "1", "ECDSAP256SHA256", env=keys1.env())
 isset("ECDSAP256SHA256" in out, "keystore-bench")