1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-27 09:51:30 +00:00
pqcrypto/test/test_format.py

29 lines
602 B
Python
Raw Normal View History

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)