mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 11:29:40 +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>
27 lines
900 B
Python
27 lines
900 B
Python
from oeqa.oetest import oeSDKTest
|
|
from oeqa.utils.decorators import *
|
|
from oeqa.utils.targetbuild import SDKBuildProject
|
|
|
|
|
|
class BuildIptablesTest(oeSDKTest):
|
|
|
|
@classmethod
|
|
def setUpClass(self):
|
|
self.project = SDKBuildProject(oeSDKTest.tc.sdktestdir + "/iptables/", oeSDKTest.tc.sdkenv, oeSDKTest.tc.d,
|
|
"http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2")
|
|
self.project.download_archive()
|
|
|
|
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()
|