[Buildroot] [git commit] support/testing: add runtime test for python-iptables

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Thu Jan 6 21:05:03 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=9d7abbfed89683a7f1bef089c9fb5ab32b967cb0
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 support/testing/tests/package/sample_python_iptables.py |  1 +
 support/testing/tests/package/test_python_iptables.py   | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/support/testing/tests/package/sample_python_iptables.py b/support/testing/tests/package/sample_python_iptables.py
new file mode 100644
index 0000000000..a3091cab31
--- /dev/null
+++ b/support/testing/tests/package/sample_python_iptables.py
@@ -0,0 +1 @@
+import iptc
diff --git a/support/testing/tests/package/test_python_iptables.py b/support/testing/tests/package/test_python_iptables.py
new file mode 100644
index 0000000000..a2ba365fa7
--- /dev/null
+++ b/support/testing/tests/package/test_python_iptables.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Iptables(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_IPTABLES=y
+        """
+    sample_scripts = ["tests/package/sample_python_iptables.py"]
+    timeout = 30



More information about the buildroot mailing list