Skip to content

Commit bd1531f

Browse files
committed
Use proper library name in test_all.
1 parent 343215f commit bd1531f

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

nix/test_all.py

+23-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@
1010
import subprocess as sp
1111

1212

13+
def library_name(library):
14+
match library:
15+
case "cryptopp":
16+
return "Crypto++"
17+
case "boringssl":
18+
return "BoringSSL"
19+
case "openssl":
20+
return "OpenSSL"
21+
case "botan":
22+
return "Botan"
23+
case "ippcp":
24+
return "IPPCP"
25+
case "libressl":
26+
return "LibreSSL"
27+
case "nettle":
28+
return "Nettle"
29+
case "gcrypt":
30+
return "libgcrypt"
31+
case "mbedtls":
32+
return "mbedTLS"
33+
1334
def base_options(library):
1435
match library:
1536
case "openssl" | "botan" | "boringssl" | "ippcp" | "libressl" | "gcrypt" | "nettle":
@@ -72,11 +93,12 @@ def build_library(library, version):
7293
def test_library(library, test_suite, version):
7394
opts = base_options(library)
7495
opts.extend(globals()[f"{test_suite.replace('-', '_')}_options"](library))
96+
lib_name = library_name(library)
7597
command = ["./result/bin/ECTesterStandalone", "test",
7698
f"-oyml:results/yml/{library}_{test_suite}_{version}.yml",
7799
f"-otext:results/txt/{library}_{test_suite}_{version}.txt",
78100
f"-oxml:results/xml/{library}_{test_suite}_{version}.xml",
79-
"-q", *opts, test_suite, library]
101+
"-q", *opts, test_suite, lib_name]
80102
try:
81103
result = sp.run(command, timeout=60, check=False)
82104
print(f"run {library} {test_suite} {version} = {result.returncode}")

0 commit comments

Comments
 (0)