summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/buildiptables.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/buildiptables.py')
-rw-r--r--meta/lib/oeqa/runtime/buildiptables.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/buildiptables.py b/meta/lib/oeqa/runtime/buildiptables.py
new file mode 100644
index 0000000000..f6061a7f98
--- /dev/null
+++ b/meta/lib/oeqa/runtime/buildiptables.py
@@ -0,0 +1,30 @@
1from oeqa.oetest import oeRuntimeTest
2from oeqa.utils.decorators import *
3from oeqa.utils.targetbuild import TargetBuildProject
4
5def setUpModule():
6 if not oeRuntimeTest.hasFeature("tools-sdk"):
7 skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES")
8
9class BuildIptablesTest(oeRuntimeTest):
10
11 @classmethod
12 def setUpClass(self):
13 self.project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
14 "http://netfilter.org/projects/iptables/files/iptables-1.4.13.tar.bz2")
15 self.project.download_archive()
16
17 @skipUnlessPassed("test_ssh")
18 def test_iptables(self):
19 self.assertEqual(self.project.run_configure(), 0,
20 msg="Running configure failed")
21
22 self.assertEqual(self.project.run_make(), 0,
23 msg="Running make failed")
24
25 self.assertEqual(self.project.run_install(), 0,
26 msg="Running make install failed")
27
28 @classmethod
29 def tearDownClass(self):
30 self.project.clean()