From a42b52163d40b9010b5be9c0c6a5032e12d02436 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Sun, 23 Jul 2023 13:21:59 +0200 Subject: [PATCH] support/testing: add test for python-pysmb Signed-off-by: Yegor Yefremov [yann.morin.1998@free.fr: ignore flake8 warnings in test sample] Signed-off-by: Yann E. MORIN --- DEVELOPERS | 2 ++ support/testing/tests/package/sample_python_pysmb.py | 2 ++ support/testing/tests/package/test_python_pysmb.py | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 support/testing/tests/package/sample_python_pysmb.py create mode 100644 support/testing/tests/package/test_python_pysmb.py diff --git a/DEVELOPERS b/DEVELOPERS index 1b474c541f..bcbacc5665 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3147,11 +3147,13 @@ F: package/zlog/ F: support/testing/tests/package/sample_python_dicttoxml2.py F: support/testing/tests/package/sample_python_dtschema.py F: support/testing/tests/package/sample_python_munch.py +F: support/testing/tests/package/sample_python_pysmb.py F: support/testing/tests/package/test_libftdi1.py F: support/testing/tests/package/test_python_can.py F: support/testing/tests/package/test_python_dicttoxml2.py F: support/testing/tests/package/test_python_dtschema.py F: support/testing/tests/package/test_python_munch.py +F: support/testing/tests/package/test_python_pysmb.py F: utils/scanpypi N: Yunhao Tian diff --git a/support/testing/tests/package/sample_python_pysmb.py b/support/testing/tests/package/sample_python_pysmb.py new file mode 100644 index 0000000000..6b37530a84 --- /dev/null +++ b/support/testing/tests/package/sample_python_pysmb.py @@ -0,0 +1,2 @@ +from nmb.NetBIOS import NetBIOS # noqa +from smb.SMBHandler import SMBHandler # noqa diff --git a/support/testing/tests/package/test_python_pysmb.py b/support/testing/tests/package/test_python_pysmb.py new file mode 100644 index 0000000000..cc4c7fb1e5 --- /dev/null +++ b/support/testing/tests/package/test_python_pysmb.py @@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Pysmb(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_PYSMB=y + """ + sample_scripts = ["tests/package/sample_python_pysmb.py"] + timeout = 40