Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

42 linhas
940 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_makefile_present(implementation):
  16. p1 = os.path.join(implementation.path(), 'Makefile')
  17. assert os.path.isfile(p1)
  18. @pytest.mark.parametrize(
  19. 'implementation',
  20. pqclean.Scheme.all_implementations(),
  21. ids=str,
  22. )
  23. @helpers.filtered_test
  24. def test_microsoft_nmakefile_present(implementation):
  25. p2 = os.path.join(implementation.path(), 'Makefile.Microsoft_nmake')
  26. if implementation.supported_on_os(os='Windows'):
  27. assert os.path.isfile(p2)
  28. else:
  29. assert not os.path.isfile(p2), "Should not have an NMake file"
  30. if __name__ == '__main__':
  31. import sys
  32. pytest.main(sys.argv)