[Buildroot] [PATCH 2/2] support/testing: add test for python-dtschema

yegorslists at googlemail.com yegorslists at googlemail.com
Thu Aug 4 05:23:32 UTC 2022


From: Yegor Yefremov <yegorslists at googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
 DEVELOPERS                                           |  1 +
 .../testing/tests/package/sample_python_dtschema.py  |  1 +
 .../testing/tests/package/test_python_dtschema.py    | 12 ++++++++++++
 3 files changed, 14 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_dtschema.py
 create mode 100644 support/testing/tests/package/test_python_dtschema.py

diff --git a/DEVELOPERS b/DEVELOPERS
index 63bb80fc9d..4ca9567b46 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3131,6 +3131,7 @@ 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:	support/testing/tests/package/test_python_dtschema.py
 F:	utils/scanpypi
 
 N:	Yunhao Tian <t123yh.xyz at gmail.com>
diff --git a/support/testing/tests/package/sample_python_dtschema.py b/support/testing/tests/package/sample_python_dtschema.py
new file mode 100644
index 0000000000..786c3d5a71
--- /dev/null
+++ b/support/testing/tests/package/sample_python_dtschema.py
@@ -0,0 +1 @@
+import dtschema
diff --git a/support/testing/tests/package/test_python_dtschema.py b/support/testing/tests/package/test_python_dtschema.py
new file mode 100644
index 0000000000..e3a4a309c1
--- /dev/null
+++ b/support/testing/tests/package/test_python_dtschema.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Dtschema(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_DTSCHEMA=y
+        """
+    sample_scripts = ["tests/package/sample_python_dtschema.py"]
+    timeout = 40
-- 
2.17.0




More information about the buildroot mailing list