2019-02-18 15:46:32 +00:00
|
|
|
"""
|
|
|
|
Checks that no implementation makes use of symbolic links.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
2019-03-01 12:18:41 +00:00
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
import pytest
|
2019-02-18 15:46:32 +00:00
|
|
|
|
2019-07-29 09:38:25 +01:00
|
|
|
import helpers
|
|
|
|
import pqclean
|
2019-02-18 15:46:32 +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_no_symlinks(implementation):
|
2019-02-18 15:46:32 +00:00
|
|
|
for file in os.listdir(implementation.path()):
|
|
|
|
fpath = os.path.join(implementation.path(), file)
|
|
|
|
if os.path.islink(fpath):
|
|
|
|
raise AssertionError("{} is a symbolic link!".format(fpath))
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2019-07-29 09:38:25 +01:00
|
|
|
import sys
|
|
|
|
pytest.main(sys.argv)
|