mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-26 17:31:38 +00:00
small improvements of reporting
This commit is contained in:
parent
13867ab7b4
commit
f25824246f
@ -43,7 +43,7 @@ def check_functest(implementation):
|
|||||||
def check_functest_sanitizers(implementation):
|
def check_functest_sanitizers(implementation):
|
||||||
env = None
|
env = None
|
||||||
if platform.machine() == 'ppc' and os.environ.get('CC', 'gcc') == 'clang':
|
if platform.machine() == 'ppc' and os.environ.get('CC', 'gcc') == 'clang':
|
||||||
raise unittest.SkipTest()
|
raise unittest.SkipTest("Clang does not support ASAN on ppc")
|
||||||
elif platform.machine() in ['armv7l', 'aarch64']:
|
elif platform.machine() in ['armv7l', 'aarch64']:
|
||||||
env = {'ASAN_OPTIONS': 'detect_leaks=0'}
|
env = {'ASAN_OPTIONS': 'detect_leaks=0'}
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,7 @@ def check_metadata(scheme):
|
|||||||
specification = itertools.chain(specification,
|
specification = itertools.chain(specification,
|
||||||
SIGNATURE_FIELDS.items())
|
SIGNATURE_FIELDS.items())
|
||||||
else:
|
else:
|
||||||
assert(False)
|
assert False, "Wrong type of metadata"
|
||||||
|
|
||||||
check_spec(copy.deepcopy(metadata), specification)
|
check_spec(copy.deepcopy(metadata), specification)
|
||||||
|
|
||||||
|
@ -10,18 +10,17 @@ import unittest
|
|||||||
|
|
||||||
|
|
||||||
def test_symbol_namespace():
|
def test_symbol_namespace():
|
||||||
if sys.platform not in ['linux', 'darwin']:
|
|
||||||
raise unittest.SkipTest()
|
|
||||||
for scheme in pqclean.Scheme.all_schemes():
|
for scheme in pqclean.Scheme.all_schemes():
|
||||||
for implementation in scheme.implementations:
|
for implementation in scheme.implementations:
|
||||||
yield check_symbol_namespace, implementation
|
yield check_symbol_namespace, implementation
|
||||||
|
|
||||||
|
|
||||||
def check_symbol_namespace(implementation):
|
def check_symbol_namespace(implementation):
|
||||||
|
if sys.platform not in ['linux', 'darwin']:
|
||||||
|
raise unittest.SkipTest("Unsupported platform")
|
||||||
helpers.make(working_dir=implementation.path())
|
helpers.make(working_dir=implementation.path())
|
||||||
out = helpers.run_subprocess(
|
out = helpers.run_subprocess(
|
||||||
['nm', '-g', 'lib{}_{}.a'.format(implementation.scheme.name,
|
['nm', '-g', implementation.libname()],
|
||||||
implementation.name)],
|
|
||||||
implementation.path()
|
implementation.path()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user