You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
719 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_supported_implementations()],
  12. ids=[str(impl) for impl in pqclean.Scheme.all_supported_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)