2019-04-30 10:35:29 +01:00
|
|
|
"""
|
|
|
|
Checks that a Makefile and a Makefile.Microsoft_nmake file is present for every
|
|
|
|
implementation of the specified scheme.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
import pytest
|
2019-04-30 10:35:29 +01:00
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
import helpers
|
|
|
|
import pqclean
|
2019-04-30 10:35:29 +01:00
|
|
|
|
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'implementation',
|
|
|
|
pqclean.Scheme.all_implementations(),
|
|
|
|
ids=str,
|
|
|
|
)
|
2019-04-30 10:35:29 +01:00
|
|
|
@helpers.filtered_test
|
2019-07-29 09:38:25 +01:00
|
|
|
def test_makefiles_present(implementation):
|
2019-04-30 10:35:29 +01:00
|
|
|
p1 = os.path.join(implementation.path(), 'Makefile')
|
|
|
|
p2 = os.path.join(implementation.path(), 'Makefile.Microsoft_nmake')
|
|
|
|
assert(os.path.isfile(p1) and os.path.isfile(p2))
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2019-07-29 09:38:25 +01:00
|
|
|
import sys
|
|
|
|
pytest.main(sys.argv)
|