Commit bd1531f 1 parent 343215f commit bd1531f Copy full SHA for bd1531f
File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 10
10
import subprocess as sp
11
11
12
12
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
+
13
34
def base_options (library ):
14
35
match library :
15
36
case "openssl" | "botan" | "boringssl" | "ippcp" | "libressl" | "gcrypt" | "nettle" :
@@ -72,11 +93,12 @@ def build_library(library, version):
72
93
def test_library (library , test_suite , version ):
73
94
opts = base_options (library )
74
95
opts .extend (globals ()[f"{ test_suite .replace ('-' , '_' )} _options" ](library ))
96
+ lib_name = library_name (library )
75
97
command = ["./result/bin/ECTesterStandalone" , "test" ,
76
98
f"-oyml:results/yml/{ library } _{ test_suite } _{ version } .yml" ,
77
99
f"-otext:results/txt/{ library } _{ test_suite } _{ version } .txt" ,
78
100
f"-oxml:results/xml/{ library } _{ test_suite } _{ version } .xml" ,
79
- "-q" , * opts , test_suite , library ]
101
+ "-q" , * opts , test_suite , lib_name ]
80
102
try :
81
103
result = sp .run (command , timeout = 60 , check = False )
82
104
print (f"run { library } { test_suite } { version } = { result .returncode } " )
You can’t perform that action at this time.
0 commit comments