From mboxrd@z Thu Jan 1 00:00:00 1970 From: aduskett at gmail.com Date: Sat, 30 Nov 2019 19:06:56 -0800 Subject: [Buildroot] [PATCH 2/2] support/testing: add python-gobject test In-Reply-To: <20191201030656.3691270-1-aduskett@gmail.com> References: <20191201030656.3691270-1-aduskett@gmail.com> Message-ID: <20191201030656.3691270-2-aduskett@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net From: Adam Duskett Add a simple test case that imports the module. Signed-off-by: Adam Duskett --- DEVELOPERS | 1 + .../testing/tests/package/sample_python_gobject.py | 1 + support/testing/tests/package/test_python_gobject.py | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 support/testing/tests/package/sample_python_gobject.py create mode 100644 support/testing/tests/package/test_python_gobject.py diff --git a/DEVELOPERS b/DEVELOPERS index 16e8510b0a..90aa50d789 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"] -- 2.23.0