* [Buildroot] [PATCH] support/testing: add test for python-pysmb
@ 2023-07-23 11:21 yegorslists--- via buildroot
2023-07-23 14:51 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: yegorslists--- via buildroot @ 2023-07-23 11:21 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
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 a6644819bd..58c8b4c8aa 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3146,11 +3146,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 <t123yh.xyz@gmail.com>
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..68767f252a
--- /dev/null
+++ b/support/testing/tests/package/sample_python_pysmb.py
@@ -0,0 +1,2 @@
+from nmb.NetBIOS import NetBIOS
+from smb.SMBHandler import SMBHandler
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
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] support/testing: add test for python-pysmb
2023-07-23 11:21 [Buildroot] [PATCH] support/testing: add test for python-pysmb yegorslists--- via buildroot
@ 2023-07-23 14:51 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2023-07-23 14:51 UTC (permalink / raw)
To: yegorslists; +Cc: buildroot
Yegor, All,
On 2023-07-23 13:21 +0200, yegorslists--- via buildroot spake thusly:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> 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 a6644819bd..58c8b4c8aa 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -3146,11 +3146,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 <t123yh.xyz@gmail.com>
> 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..68767f252a
> --- /dev/null
> +++ b/support/testing/tests/package/sample_python_pysmb.py
> @@ -0,0 +1,2 @@
> +from nmb.NetBIOS import NetBIOS
> +from smb.SMBHandler import SMBHandler
$ make check-package
support/testing/tests/package/sample_python_pysmb.py:0: run 'flake8' and fix the warnings
$ flake8 support/testing/tests/package/sample_python_pysmb.py
support/testing/tests/package/sample_python_pysmb.py:1:1: F401 'nmb.NetBIOS.NetBIOS' imported but unused
support/testing/tests/package/sample_python_pysmb.py:2:1: F401 'smb.SMBHandler.SMBHandler' imported but unused
I've fixed that (by adding a # noqa).
Applied to master, thanks.
Regards,
Yann E. MORIN.
> 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
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-23 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-23 11:21 [Buildroot] [PATCH] support/testing: add test for python-pysmb yegorslists--- via buildroot
2023-07-23 14:51 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox