asynciomainproxy-ticket
Last change
on this file since b2546f0 was
b2546f0,
checked in by Fiona Klute <fiona.klute@…>, 3 years ago
|
mgstest.softhsm: Include type when searching object URLs
The p11tool documentation notes that some tokens require the same
label to be used for a certificate and its private key. That isn't the
case for SoftHSM, but I still want to support the case where a key
pair shares a label.
|
-
Property mode set to
100755
|
File size:
611 bytes
|
Line | |
---|
1 | #!/usr/bin/python3 |
---|
2 | |
---|
3 | if __name__ == "__main__": |
---|
4 | import doctest |
---|
5 | import importlib |
---|
6 | import sys |
---|
7 | modules = [ |
---|
8 | 'mgstest', |
---|
9 | 'mgstest.hooks', |
---|
10 | 'mgstest.http', |
---|
11 | 'mgstest.services', |
---|
12 | 'mgstest.softhsm', |
---|
13 | 'mgstest.tests' |
---|
14 | ] |
---|
15 | |
---|
16 | totals = (0, 0) |
---|
17 | for m in modules: |
---|
18 | mod = importlib.import_module(m) |
---|
19 | result = doctest.testmod(m=mod, verbose=True) |
---|
20 | totals = tuple(sum(x) for x in zip(totals, result)) |
---|
21 | |
---|
22 | fails, count = totals |
---|
23 | print(f'Summary over all modules: {fails} out of {count} tests failed.') |
---|
24 | if fails > 0: |
---|
25 | sys.exit(1) |
---|
Note: See
TracBrowser
for help on using the repository browser.