support/testing: add python-gobject test
authorAdam Duskett <Aduskett@gmail.com>
Sun, 1 Dec 2019 18:39:09 +0000 (10:39 -0800)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 3 Dec 2019 22:49:34 +0000 (23:49 +0100)
Add a simple test case that imports the module.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
DEVELOPERS
support/testing/tests/package/sample_python_gobject.py [new file with mode: 0644]
support/testing/tests/package/test_python_gobject.py [new file with mode: 0644]

index a1f94df951b0682091c7951e5a3ca5348ad93f47..a030be7890662068c86234dc0fda46bc4683d999 100644 (file)
@@ -75,6 +75,7 @@ F:    package/setools/
 F:     package/sngrep/
 F:     package/spidermonkey/
 F:     package/systemd/
+F:     support/testing/tests/package/test_python_gobject.py
 
 N:     Adam Heinrich <adam@adamh.cz>
 F:     package/jack1/
diff --git a/support/testing/tests/package/sample_python_gobject.py b/support/testing/tests/package/sample_python_gobject.py
new file mode 100644 (file)
index 0000000..84ebee7
--- /dev/null
@@ -0,0 +1 @@
+import gobject  # noqa
diff --git a/support/testing/tests/package/test_python_gobject.py b/support/testing/tests/package/test_python_gobject.py
new file mode 100644 (file)
index 0000000..0a59447
--- /dev/null
@@ -0,0 +1,11 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy2Gobject(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON=y
+        BR2_PACKAGE_PYTHON_GOBJECT=y
+        """
+    sample_scripts = ["tests/package/sample_python_gobject.py"]