mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-23 16:08:59 +00:00
78a65d6ec9
* Do tests with pytest to run them in parallel * attempt to handle merge commits better for PR test path Similar to how we solved this for travis * Clean up imports * don't run valgrind if not specified slow_test * Fix functest after initializer rename * upload tests results as junit * Upload test-common files since #200 got merged * Catch test results upload failure
29 lines
571 B
Python
29 lines
571 B
Python
"""
|
|
Checks that a LICENSE or LICENSE.txt file is present for every
|
|
implementation of the specified scheme.
|
|
"""
|
|
|
|
import os
|
|
|
|
import pytest
|
|
|
|
import helpers
|
|
import pqclean
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
'implementation',
|
|
pqclean.Scheme.all_implementations(),
|
|
ids=str,
|
|
)
|
|
@helpers.filtered_test
|
|
def test_license(implementation):
|
|
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))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
import sys
|
|
pytest.main(sys.argv)
|