2019-02-14 03:31:37 +00:00
|
|
|
"""
|
2019-02-18 12:04:59 +00:00
|
|
|
Checks that the archive library can be successfully built for every
|
|
|
|
scheme/implementation.
|
2019-02-14 03:31:37 +00:00
|
|
|
"""
|
2019-07-29 09:38:25 +01:00
|
|
|
import pytest
|
2019-02-14 03:31:37 +00:00
|
|
|
|
2019-02-14 03:25:34 +00:00
|
|
|
import helpers
|
2019-07-29 09:38:25 +01:00
|
|
|
import pqclean
|
2019-02-14 03:25:34 +00:00
|
|
|
|
2019-02-18 12:04:59 +00:00
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'implementation,test_dir,impl_dir, init, destr',
|
|
|
|
[(impl, *helpers.isolate_test_files(impl.path(), 'test_functest_'))
|
2019-09-06 11:01:44 +01:00
|
|
|
for impl in pqclean.Scheme.all_supported_implementations()],
|
|
|
|
ids=[str(impl) for impl in pqclean.Scheme.all_supported_implementations()],
|
2019-07-29 09:38:25 +01:00
|
|
|
)
|
2019-04-18 09:00:08 +01:00
|
|
|
@helpers.filtered_test
|
2019-07-29 09:38:25 +01:00
|
|
|
def test_compile_lib(implementation, test_dir, impl_dir, init, destr):
|
|
|
|
init()
|
|
|
|
helpers.make('clean', working_dir=impl_dir)
|
|
|
|
helpers.make(working_dir=impl_dir)
|
|
|
|
destr()
|
2019-02-18 12:39:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2019-07-29 09:38:25 +01:00
|
|
|
import sys
|
|
|
|
pytest.main(sys.argv)
|