aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2019-12-01 10:39:09 -0800
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-12-03 23:49:34 +0100
commit600132f8c08a5ae3d399559dd9c17d3b7b4c6ae3 (patch)
tree99e6158fb54b1e908db1f45044678b2754b5e650
parent4a392d1678a0d63652e0a40f7a3aa5e8a249961d (diff)
downloadbuildroot-600132f8c08a5ae3d399559dd9c17d3b7b4c6ae3.tar.gz
buildroot-600132f8c08a5ae3d399559dd9c17d3b7b4c6ae3.tar.bz2
support/testing: add python-gobject test
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>
-rw-r--r--DEVELOPERS1
-rw-r--r--support/testing/tests/package/sample_python_gobject.py1
-rw-r--r--support/testing/tests/package/test_python_gobject.py11
3 files changed, 13 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index a1f94df951..a030be7890 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -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
index 0000000000..84ebee7362
--- /dev/null
+++ b/support/testing/tests/package/sample_python_gobject.py
@@ -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
index 0000000000..0a59447adb
--- /dev/null
+++ b/support/testing/tests/package/test_python_gobject.py
@@ -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"]