From d144edb21d4b1c1f7fe2ed1e42e55cb2f081d826 Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Fri, 16 Nov 2018 01:57:32 -0200 Subject: support/testing: add python-service-identity tests Add a simple test case that imports the module. Signed-off-by: Ricardo Martincoski Signed-off-by: Thomas Petazzoni --- .../tests/package/test_python_service_identity.py | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 support/testing/tests/package/test_python_service_identity.py (limited to 'support/testing/tests/package/test_python_service_identity.py') diff --git a/support/testing/tests/package/test_python_service_identity.py b/support/testing/tests/package/test_python_service_identity.py new file mode 100644 index 0000000000..6aeb77de8c --- /dev/null +++ b/support/testing/tests/package/test_python_service_identity.py @@ -0,0 +1,23 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy2ServiceIdentity(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON=y + BR2_PACKAGE_PYTHON_SERVICE_IDENTITY=y + """ + sample_scripts = ["tests/package/sample_python_service_identity.py"] + timeout = 30 + + +class TestPythonPy3ServiceIdentity(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_SERVICE_IDENTITY=y + """ + sample_scripts = ["tests/package/sample_python_service_identity.py"] + timeout = 30 -- cgit v1.2.3