Reference implementations of PQC
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

28 行
699 B

  1. """
  2. Checks that the archive library can be successfully built for every
  3. scheme/implementation.
  4. """
  5. import pytest
  6. import helpers
  7. import pqclean
  8. @pytest.mark.parametrize(
  9. 'implementation,test_dir,impl_dir, init, destr',
  10. [(impl, *helpers.isolate_test_files(impl.path(), 'test_functest_'))
  11. for impl in pqclean.Scheme.all_implementations()],
  12. ids=[str(impl) for impl in pqclean.Scheme.all_implementations()],
  13. )
  14. @helpers.filtered_test
  15. def test_compile_lib(implementation, test_dir, impl_dir, init, destr):
  16. init()
  17. helpers.make('clean', working_dir=impl_dir)
  18. helpers.make(working_dir=impl_dir)
  19. destr()
  20. if __name__ == '__main__':
  21. import sys
  22. pytest.main(sys.argv)