summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-08-17 08:19:21 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-08-17 08:19:21 +0000
commit94de76fa1a2362ebf4910429325a6833cf4e7e1b (patch)
tree6b10f084fac40ab779a4d223a03810cbd3e1b129 /regress
parent64609c1ec9abfb1a2d0801eae1b63f06bc82632c (diff)
Also print a list of missing scripts in summary
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libssl/tlsfuzzer/tlsfuzzer.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py b/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
index 95fa0a95ea1..64300e8151f 100644
--- a/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
+++ b/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
@@ -1,4 +1,4 @@
-# $OpenBSD: tlsfuzzer.py,v 1.15 2020/08/17 08:01:53 tb Exp $
+# $OpenBSD: tlsfuzzer.py,v 1.16 2020/08/17 08:19:20 tb Exp $
#
# Copyright (c) 2020 Theo Buehler <tb@openbsd.org>
#
@@ -487,6 +487,7 @@ class TestRunner:
self.stats = []
self.failed = []
+ self.missing = []
self.timing = timing
self.verbose = verbose
@@ -514,13 +515,13 @@ class TestRunner:
else:
print(f"{script[:68]:<72}", end=" ", flush=True)
start = timer()
- script = os.path.join(self.scriptdir, script)
- if not os.path.exists(script):
- # likely an outdated py3-tlsfuzzer package
+ scriptpath = os.path.join(self.scriptdir, script)
+ if not os.path.exists(scriptpath):
+ self.missing.append(script)
print("MISSING")
return
test = subprocess.run(
- ["python3", os.path.join(self.scriptdir, script)] + args,
+ ["python3", scriptpath] + args,
capture_output=not self.verbose,
text=True,
)
@@ -559,6 +560,10 @@ class TestRunner:
print("Failed tests:")
print('\n'.join(self.failed))
+ if self.missing:
+ print("Missing tests (outdated package?):")
+ print('\n'.join(self.missing))
+
class TlsServer:
""" Spawns an s_server listening on localhost:port if necessary. """