pqc/test/test_format.py

29 строки
602 B
Python
Исходник Обычный вид История

import pytest
import helpers
2019-02-27 14:50:25 +00:00
import pqclean
@pytest.mark.parametrize(
'implementation',
pqclean.Scheme.all_implementations(),
ids=str,
)
@helpers.filtered_test
def test_format(implementation: pqclean.Implementation):
helpers.ensure_available('astyle')
cfiles = implementation.cfiles()
hfiles = implementation.hfiles()
result = helpers.run_subprocess(
['astyle',
'--dry-run',
'--options=../.astylerc',
*cfiles,
*hfiles])
assert 'Formatted' not in result
2019-02-27 14:50:25 +00:00
if __name__ == '__main__':
import sys
pytest.main(sys.argv)