2019-02-14 03:31:37 +00:00
|
|
|
"""
|
2019-02-18 12:04:59 +00:00
|
|
|
Checks that a LICENSE or LICENSE.txt file is present for every
|
|
|
|
implementation of the specified scheme.
|
2019-02-14 03:31:37 +00:00
|
|
|
"""
|
|
|
|
|
2019-02-14 03:25:34 +00:00
|
|
|
import os
|
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
import pytest
|
2019-02-18 12:04:59 +00:00
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
import helpers
|
|
|
|
import pqclean
|
2019-02-14 03:25:34 +00:00
|
|
|
|
2019-02-18 12:04:59 +00:00
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'implementation',
|
|
|
|
pqclean.Scheme.all_implementations(),
|
|
|
|
ids=str,
|
|
|
|
)
|
2019-04-18 09:00:08 +01:00
|
|
|
@helpers.filtered_test
|
2019-07-29 09:38:25 +01:00
|
|
|
def test_license(implementation):
|
2019-02-14 03:25:34 +00:00
|
|
|
p1 = os.path.join(implementation.path(), 'LICENSE')
|
|
|
|
p2 = os.path.join(implementation.path(), 'LICENSE.txt')
|
|
|
|
assert(os.path.isfile(p1) or os.path.isfile(p2))
|
2019-02-18 12:39:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2019-07-29 09:38:25 +01:00
|
|
|
import sys
|
|
|
|
pytest.main(sys.argv)
|