aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-08-07 09:27:26 +0200
committerOle Troan <ot@cisco.com>2018-08-07 11:47:35 +0200
commit1d20f4748ccbf9d5ae3a7a0957d323d1b9f55d35 (patch)
treec77d81137dcf2742d273bc9bcf71e5ca3eda632f
parenta88c916e5dfb65ccfbe7efc3e0df7db8dac73e78 (diff)
PAPI: Move unit tests to fix packaging issues.
Change-Id: I67a0f168254367c657eb11d4413f9dc0c5356b3c Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--extras/rpm/vpp.spec1
-rw-r--r--src/vpp-api/python/setup.py4
-rw-r--r--src/vpp-api/python/vpp_papi/tests/__init__.py (renamed from src/vpp-api/python/tests/__init__.py)0
-rwxr-xr-xsrc/vpp-api/python/vpp_papi/tests/test_vpp_serializer.py (renamed from src/vpp-api/python/tests/test_vpp_serializer.py)0
4 files changed, 2 insertions, 3 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec
index 4915914c074..69d4d6b1cb1 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -398,7 +398,6 @@ fi
%files api-python
%defattr(644,root,root)
%{python2_sitelib}/vpp_*
-%{python2_sitelib}/tests/*
%files selinux-policy
%defattr(-,root,root,0755)
diff --git a/src/vpp-api/python/setup.py b/src/vpp-api/python/setup.py
index 130967f79f1..0d8c149679e 100644
--- a/src/vpp-api/python/setup.py
+++ b/src/vpp-api/python/setup.py
@@ -18,13 +18,13 @@ except ImportError:
from distutils.core import setup, find_packages
setup(name='vpp_papi',
- version='1.6',
+ version='1.6.1',
description='VPP Python binding',
author='Ole Troan',
author_email='ot@cisco.com',
url='https://wiki.fd.io/view/VPP/Python_API',
license='Apache-2.0',
- test_suite='tests',
+ test_suite='vpp_papi.tests',
# Add when we don't need to support 2.7.5
# 'enum34;python_version<"3.4"'],
install_requires=['cffi >= 1.6', 'enum34'],
diff --git a/src/vpp-api/python/tests/__init__.py b/src/vpp-api/python/vpp_papi/tests/__init__.py
index e69de29bb2d..e69de29bb2d 100644
--- a/src/vpp-api/python/tests/__init__.py
+++ b/src/vpp-api/python/vpp_papi/tests/__init__.py
diff --git a/src/vpp-api/python/tests/test_vpp_serializer.py b/src/vpp-api/python/vpp_papi/tests/test_vpp_serializer.py
index 9fee161684d..9fee161684d 100755
--- a/src/vpp-api/python/tests/test_vpp_serializer.py
+++ b/src/vpp-api/python/vpp_papi/tests/test_vpp_serializer.py