소스 검색

support/testing: add runtime test for python-iptables

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Arnout Vandecappelle (Essensium/Mind) 3 년 전
부모
커밋
9d7abbfed8
2개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      support/testing/tests/package/sample_python_iptables.py
  2. 12 0
      support/testing/tests/package/test_python_iptables.py

+ 1 - 0
support/testing/tests/package/sample_python_iptables.py

@@ -0,0 +1 @@
+import iptc

+ 12 - 0
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