From: Tobias Brunner Date: Tue, 14 Jan 2020 09:49:47 +0000 (+0100) Subject: vici: Add tox.ini to run tests with tox X-Git-Tag: 5.8.3dr1~67^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5153c5897ba80104582f6c195d159b40e880605;p=thirdparty%2Fstrongswan.git vici: Add tox.ini to run tests with tox Some of the interpreters might not be available on the host system, use --skip-missing-interpreters to not fail in that case. --- diff --git a/src/libcharon/plugins/vici/python/.gitignore b/src/libcharon/plugins/vici/python/.gitignore index 5c45898418..d4813d691d 100644 --- a/src/libcharon/plugins/vici/python/.gitignore +++ b/src/libcharon/plugins/vici/python/.gitignore @@ -1,3 +1,4 @@ +.tox *.pyc build dist diff --git a/src/libcharon/plugins/vici/python/Makefile.am b/src/libcharon/plugins/vici/python/Makefile.am index 14b5eb29c1..68166f4e19 100644 --- a/src/libcharon/plugins/vici/python/Makefile.am +++ b/src/libcharon/plugins/vici/python/Makefile.am @@ -1,5 +1,6 @@ EXTRA_DIST = LICENSE README.rst MANIFEST.in \ setup.py.in \ + tox.ini \ vici/test/__init__.py \ vici/test/test_protocol.py \ vici/__init__.py \ diff --git a/src/libcharon/plugins/vici/python/tox.ini b/src/libcharon/plugins/vici/python/tox.ini new file mode 100644 index 0000000000..8a57cfd648 --- /dev/null +++ b/src/libcharon/plugins/vici/python/tox.ini @@ -0,0 +1,16 @@ +[tox] +envlist = py27, py35, py36, py37, py38 + +[testenv] +deps = + pytest + pytest-pycodestyle +commands = pytest --pycodestyle + +[testenv:py27] +deps = pytest +commands = pytest + +[pycodestyle] +max-line-length = 80 +show-source = True