All of lore.kernel.org
 help / color / mirror / Atom feed
From: yegorslists--- via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH] support/testing: add test for python-pysmb
Date: Sun, 23 Jul 2023 13:21:59 +0200	[thread overview]
Message-ID: <20230723112159.3816711-1-yegorslists@googlemail.com> (raw)

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

             reply	other threads:[~2023-07-23 11:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-23 11:21 yegorslists--- via buildroot [this message]
2023-07-23 14:51 ` [Buildroot] [PATCH] support/testing: add test for python-pysmb Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230723112159.3816711-1-yegorslists@googlemail.com \
    --to=buildroot@buildroot.org \
    --cc=yegorslists@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.