From: Adam Duskett Date: Sun, 1 Dec 2019 18:39:09 +0000 (-0800) Subject: support/testing: add python-gobject test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=600132f8c08a5ae3d399559dd9c17d3b7b4c6ae3;p=buildroot.git support/testing: add python-gobject test Add a simple test case that imports the module. Signed-off-by: Adam Duskett Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- 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 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"]