mirror of
https://git.yoctoproject.org/poky
synced 2026-03-29 23:02:20 +02:00
The modules that use skipModule should import it themselves and not rely on somebody else to import it. (From OE-Core rev: 6a14db407d471e717f41342ac0700e6a383c32c3) Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
1.0 KiB
Python
31 lines
1.0 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 BuildCvsTest(oeRuntimeTest):
|
|
|
|
@classmethod
|
|
def setUpClass(self):
|
|
self.project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
|
|
"http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2")
|
|
self.project.download_archive()
|
|
|
|
@skipUnlessPassed("test_ssh")
|
|
def test_cvs(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()
|