mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
oeqa: Use 2.14 release of cpio instead of 2.13
2.13 may not be buildable with latest compilers without patching (From OE-Core rev: 64d56cf416b31ae92438deefe4028402120ed998) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 406a33f896accc35a9cb6ab156f1e0f42dda67d8) Backport: Fix [YOCTO #16137] by using the same archive as the cpio recipe, ensuring the archive is in DL_DIR and so, avoiding reaching unreliable upstream server. This upgrade is safe to do because this archive is only use to test that it compiles. Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Paul Barker <paul@pbarker.dev> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -12,7 +12,7 @@ class BuildCpioTest(OERuntimeTestCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.13.tar.gz'
|
uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.14.tar.gz'
|
||||||
cls.project = TargetBuildProject(cls.tc.target,
|
cls.project = TargetBuildProject(cls.tc.target,
|
||||||
uri,
|
uri,
|
||||||
dl_dir = cls.tc.td['DL_DIR'])
|
dl_dir = cls.tc.td['DL_DIR'])
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ class BuildCpioTest(OESDKTestCase):
|
|||||||
"""
|
"""
|
||||||
def test_cpio(self):
|
def test_cpio(self):
|
||||||
with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir:
|
with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir:
|
||||||
tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftpmirror.gnu.org/gnu/cpio/cpio-2.13.tar.gz")
|
tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftpmirror.gnu.org/gnu/cpio/cpio-2.14.tar.gz")
|
||||||
|
|
||||||
dirs = {}
|
dirs = {}
|
||||||
dirs["source"] = os.path.join(testdir, "cpio-2.13")
|
dirs["source"] = os.path.join(testdir, "cpio-2.14")
|
||||||
dirs["build"] = os.path.join(testdir, "build")
|
dirs["build"] = os.path.join(testdir, "build")
|
||||||
dirs["install"] = os.path.join(testdir, "install")
|
dirs["install"] = os.path.join(testdir, "install")
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class MetaIDE(OESelftestTestCase):
|
|||||||
def test_meta_ide_can_build_cpio_project(self):
|
def test_meta_ide_can_build_cpio_project(self):
|
||||||
dl_dir = self.td.get('DL_DIR', None)
|
dl_dir = self.td.get('DL_DIR', None)
|
||||||
self.project = SDKBuildProject(self.tmpdir_metaideQA + "/cpio/", self.environment_script_path,
|
self.project = SDKBuildProject(self.tmpdir_metaideQA + "/cpio/", self.environment_script_path,
|
||||||
"https://ftpmirror.gnu.org/gnu/cpio/cpio-2.13.tar.gz",
|
"https://ftpmirror.gnu.org/gnu/cpio/cpio-2.14.tar.gz",
|
||||||
self.tmpdir_metaideQA, self.td['DATETIME'], dl_dir=dl_dir)
|
self.tmpdir_metaideQA, self.td['DATETIME'], dl_dir=dl_dir)
|
||||||
self.project.download_archive()
|
self.project.download_archive()
|
||||||
self.assertEqual(self.project.run_configure('$CONFIGURE_FLAGS --disable-maintainer-mode','sed -i -e "/char \*program_name/d" src/global.c;'), 0,
|
self.assertEqual(self.project.run_configure('$CONFIGURE_FLAGS --disable-maintainer-mode','sed -i -e "/char \*program_name/d" src/global.c;'), 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user