diff options
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildcpio.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildcpio.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildcpio.py b/meta/lib/oeqa/sdk/cases/buildcpio.py index e7fc211a47..51003b19cd 100644 --- a/meta/lib/oeqa/sdk/cases/buildcpio.py +++ b/meta/lib/oeqa/sdk/cases/buildcpio.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
3 | # | 5 | # |
4 | 6 | ||
@@ -17,10 +19,10 @@ class BuildCpioTest(OESDKTestCase): | |||
17 | """ | 19 | """ |
18 | def test_cpio(self): | 20 | def test_cpio(self): |
19 | with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir: | 21 | with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir: |
20 | tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.gz") | 22 | tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz") |
21 | 23 | ||
22 | dirs = {} | 24 | dirs = {} |
23 | dirs["source"] = os.path.join(testdir, "cpio-2.13") | 25 | dirs["source"] = os.path.join(testdir, "cpio-2.15") |
24 | dirs["build"] = os.path.join(testdir, "build") | 26 | dirs["build"] = os.path.join(testdir, "build") |
25 | dirs["install"] = os.path.join(testdir, "install") | 27 | dirs["install"] = os.path.join(testdir, "install") |
26 | 28 | ||
@@ -28,8 +30,7 @@ class BuildCpioTest(OESDKTestCase): | |||
28 | self.assertTrue(os.path.isdir(dirs["source"])) | 30 | self.assertTrue(os.path.isdir(dirs["source"])) |
29 | os.makedirs(dirs["build"]) | 31 | os.makedirs(dirs["build"]) |
30 | 32 | ||
31 | self._run("sed -i -e '/char.*program_name/d' {source}/src/global.c".format(**dirs)) | 33 | self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs)) |
32 | self._run("cd {build} && {source}/configure --disable-maintainer-mode $CONFIGURE_FLAGS".format(**dirs)) | ||
33 | self._run("cd {build} && make -j".format(**dirs)) | 34 | self._run("cd {build} && make -j".format(**dirs)) |
34 | self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) | 35 | self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) |
35 | 36 | ||