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

29 行
613 B

  1. """
  2. Checks that a Makefile and a Makefile.Microsoft_nmake file is present for every
  3. implementation of the specified scheme.
  4. """
  5. import os
  6. import pytest
  7. import helpers
  8. import pqclean
  9. @pytest.mark.parametrize(
  10. 'implementation',
  11. pqclean.Scheme.all_implementations(),
  12. ids=str,
  13. )
  14. @helpers.filtered_test
  15. def test_makefiles_present(implementation):
  16. p1 = os.path.join(implementation.path(), 'Makefile')
  17. p2 = os.path.join(implementation.path(), 'Makefile.Microsoft_nmake')
  18. assert(os.path.isfile(p1) and os.path.isfile(p2))
  19. if __name__ == '__main__':
  20. import sys
  21. pytest.main(sys.argv)