support/testing: add libftdi1 test case
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 10 Feb 2020 09:11:49 +0000 (10:11 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 23 Feb 2020 10:12:09 +0000 (11:12 +0100)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
.gitlab-ci.yml
DEVELOPERS
support/testing/tests/package/sample_libftdi1.py [new file with mode: 0644]
support/testing/tests/package/test_libftdi1.py [new file with mode: 0644]

index a6436a84172dd346b0c5f6269c30ebb68bd2fba1..b4dad3173e3dd4367adf6b7c250289a3c2264aa5 100644 (file)
@@ -381,6 +381,8 @@ tests.package.test_docker_compose.TestDockerCompose: { extends: .runtime_test }
 tests.package.test_dropbear.TestDropbear: { extends: .runtime_test }
 tests.package.test_glxinfo.TestGlxinfo: { extends: .runtime_test }
 tests.package.test_ipython.TestIPythonPy3: { extends: .runtime_test }
+tests.package.test_libftdi1.TestPythonPy2Libftdi1: { extends: .runtime_test }
+tests.package.test_libftdi1.TestPythonPy3Libftdi1: { extends: .runtime_test }
 tests.package.test_lpeg.TestLuaLPeg: { extends: .runtime_test }
 tests.package.test_lpeg.TestLuajitLPeg: { extends: .runtime_test }
 tests.package.test_lsqlite3.TestLuaLsqlite3: { extends: .runtime_test }
index 91716ed27ed416d6ea2502250d4bceee4cfb9313..7d3d1ca11a9eb757fb31455464d66232dd543d33 100644 (file)
@@ -2630,6 +2630,7 @@ F:        package/ti-utils/
 F:     package/x11r7/xapp_xconsole/
 F:     package/x11r7/xapp_xinput-calibrator/
 F:     package/zlog/
+F:     support/testing/tests/package/test_libftdi1.py
 F:     support/testing/tests/package/test_python_can.py
 F:     utils/scanpypi
 
diff --git a/support/testing/tests/package/sample_libftdi1.py b/support/testing/tests/package/sample_libftdi1.py
new file mode 100644 (file)
index 0000000..2da6124
--- /dev/null
@@ -0,0 +1 @@
+import ftdi1 # noqa
diff --git a/support/testing/tests/package/test_libftdi1.py b/support/testing/tests/package/test_libftdi1.py
new file mode 100644 (file)
index 0000000..78c9284
--- /dev/null
@@ -0,0 +1,25 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy2Libftdi1(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON=y
+        BR2_PACKAGE_LIBFTDI1=y
+        BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS=y
+        """
+    sample_scripts = ["tests/package/sample_libftdi1.py"]
+    timeout = 40
+
+
+class TestPythonPy3Libftdi1(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_LIBFTDI1=y
+        BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS=y
+        """
+    sample_scripts = ["tests/package/sample_libftdi1.py"]
+    timeout = 40