summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/cases/buildcpio.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-05-20 10:18:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-22 10:21:26 +0100
commitfd2714953d3f376d5ad7014ebd3d341d5d188ac4 (patch)
tree4aacee934eb3f78bcf1a1a0b189aa85dd87c2feb /meta/lib/oeqa/sdk/cases/buildcpio.py
parent4b62fa0f5294552f2d6e1267f9fe609952b3cb6c (diff)
downloadpoky-fd2714953d3f376d5ad7014ebd3d341d5d188ac4.tar.gz
oeqa/sdk: rename test cases
Instead of having a test called eg "assimp", rename it to "cmake" as the point of the test is to verify that CMake works. This should make it clearer what the tests are actually exercising. (From OE-Core rev: ccf7fdc0e5b6df218b319f972cd5ba142c06c243) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildcpio.py')
-rw-r--r--meta/lib/oeqa/sdk/cases/buildcpio.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildcpio.py b/meta/lib/oeqa/sdk/cases/buildcpio.py
deleted file mode 100644
index 51003b19cd..0000000000
--- a/meta/lib/oeqa/sdk/cases/buildcpio.py
+++ /dev/null
@@ -1,37 +0,0 @@
1#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7import os
8import tempfile
9import subprocess
10import unittest
11
12from oeqa.sdk.case import OESDKTestCase
13from oeqa.utils.subprocesstweak import errors_have_output
14errors_have_output()
15
16class BuildCpioTest(OESDKTestCase):
17 """
18 Check that autotools will cross-compile correctly.
19 """
20 def test_cpio(self):
21 with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir:
22 tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz")
23
24 dirs = {}
25 dirs["source"] = os.path.join(testdir, "cpio-2.15")
26 dirs["build"] = os.path.join(testdir, "build")
27 dirs["install"] = os.path.join(testdir, "install")
28
29 subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
30 self.assertTrue(os.path.isdir(dirs["source"]))
31 os.makedirs(dirs["build"])
32
33 self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs))
34 self._run("cd {build} && make -j".format(**dirs))
35 self._run("cd {build} && make install DESTDIR={install}".format(**dirs))
36
37 self.check_elf(os.path.join(dirs["install"], "usr", "local", "bin", "cpio"))