mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 18:53:13 +01:00
We've had some upstream mirror instability so use our own mirror for the iptables sources to ensure this doesn't affect the test results. (From OE-Core rev: 25f6af8895d5f5c6dcedde0a21285d63522769c8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
from oeqa.oetest import oeRuntimeTest, skipModule
|
|
from oeqa.utils.decorators import *
|
|
from oeqa.utils.targetbuild import TargetBuildProject
|
|
|
|
def setUpModule():
|
|
if not oeRuntimeTest.hasFeature("tools-sdk"):
|
|
skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES")
|
|
|
|
class BuildIptablesTest(oeRuntimeTest):
|
|
|
|
@classmethod
|
|
def setUpClass(self):
|
|
self.project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
|
|
"http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2")
|
|
self.project.download_archive()
|
|
|
|
@testcase(206)
|
|
@skipUnlessPassed("test_ssh")
|
|
def test_iptables(self):
|
|
self.assertEqual(self.project.run_configure(), 0,
|
|
msg="Running configure failed")
|
|
|
|
self.assertEqual(self.project.run_make(), 0,
|
|
msg="Running make failed")
|
|
|
|
self.assertEqual(self.project.run_install(), 0,
|
|
msg="Running make install failed")
|
|
|
|
@classmethod
|
|
def tearDownClass(self):
|
|
self.project.clean()
|