diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-07-26 11:22:36 -0500 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-08-06 19:11:18 -0700 |
commit | d6771999e0a786101b3f673e2ccc0e56e5cb6bdc (patch) | |
tree | f18927906f7cbed52c5410541fa654925bad9ffc | |
parent | e1f0aceba132f325bc43cf093fc5a71a07346e48 (diff) | |
download | poky-d6771999e0a786101b3f673e2ccc0e56e5cb6bdc.tar.gz |
oeqa sdk cases: Skip SDK test cases when TCLIBC is newlib
Newlib generally requires additional components to function. Skip the
cases where newlib is known to not work.
(From OE-Core rev: 99a5ca1c2c2b7b3193710bc681fbf05936025b5b)
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b9934755554e40d9980b90c3d541f4c702203561)
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/lib/oeqa/sdk/cases/assimp.py | 4 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildcpio.py | 5 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildepoxy.py | 4 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildgalculator.py | 4 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildlzip.py | 5 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/gcc.py | 4 |
6 files changed, 26 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/assimp.py b/meta/lib/oeqa/sdk/cases/assimp.py index d990b1e97d..4cc30f2672 100644 --- a/meta/lib/oeqa/sdk/cases/assimp.py +++ b/meta/lib/oeqa/sdk/cases/assimp.py | |||
@@ -19,6 +19,10 @@ class BuildAssimp(OESDKTestCase): | |||
19 | """ | 19 | """ |
20 | 20 | ||
21 | def setUp(self): | 21 | def setUp(self): |
22 | libc = self.td.get("TCLIBC") | ||
23 | if libc in [ 'newlib' ]: | ||
24 | raise unittest.SkipTest("CMakeTest class: SDK doesn't contain a supported C library") | ||
25 | |||
22 | if not (self.tc.hasHostPackage("nativesdk-cmake") or | 26 | if not (self.tc.hasHostPackage("nativesdk-cmake") or |
23 | self.tc.hasHostPackage("cmake-native")): | 27 | self.tc.hasHostPackage("cmake-native")): |
24 | raise unittest.SkipTest("Needs cmake") | 28 | raise unittest.SkipTest("Needs cmake") |
diff --git a/meta/lib/oeqa/sdk/cases/buildcpio.py b/meta/lib/oeqa/sdk/cases/buildcpio.py index 51003b19cd..ab8fc41876 100644 --- a/meta/lib/oeqa/sdk/cases/buildcpio.py +++ b/meta/lib/oeqa/sdk/cases/buildcpio.py | |||
@@ -17,6 +17,11 @@ class BuildCpioTest(OESDKTestCase): | |||
17 | """ | 17 | """ |
18 | Check that autotools will cross-compile correctly. | 18 | Check that autotools will cross-compile correctly. |
19 | """ | 19 | """ |
20 | def setUp(self): | ||
21 | libc = self.td.get("TCLIBC") | ||
22 | if libc in [ 'newlib' ]: | ||
23 | raise unittest.SkipTest("AutotoolsTest class: SDK doesn't contain a supported C library") | ||
24 | |||
20 | def test_cpio(self): | 25 | def test_cpio(self): |
21 | with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir: | 26 | 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") | 27 | tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz") |
diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py index 147ee3e0ee..5b9c36fcec 100644 --- a/meta/lib/oeqa/sdk/cases/buildepoxy.py +++ b/meta/lib/oeqa/sdk/cases/buildepoxy.py | |||
@@ -18,6 +18,10 @@ class EpoxyTest(OESDKTestCase): | |||
18 | Test that Meson builds correctly. | 18 | Test that Meson builds correctly. |
19 | """ | 19 | """ |
20 | def setUp(self): | 20 | def setUp(self): |
21 | libc = self.td.get("TCLIBC") | ||
22 | if libc in [ 'newlib' ]: | ||
23 | raise unittest.SkipTest("MesonTest class: SDK doesn't contain a supported C library") | ||
24 | |||
21 | if not (self.tc.hasHostPackage("nativesdk-meson") or | 25 | if not (self.tc.hasHostPackage("nativesdk-meson") or |
22 | self.tc.hasHostPackage("meson-native")): | 26 | self.tc.hasHostPackage("meson-native")): |
23 | raise unittest.SkipTest("EpoxyTest class: SDK doesn't contain Meson") | 27 | raise unittest.SkipTest("EpoxyTest class: SDK doesn't contain Meson") |
diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py index 178f07472d..28187434a1 100644 --- a/meta/lib/oeqa/sdk/cases/buildgalculator.py +++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py | |||
@@ -18,6 +18,10 @@ class GalculatorTest(OESDKTestCase): | |||
18 | Test that autotools and GTK+ 3 compiles correctly. | 18 | Test that autotools and GTK+ 3 compiles correctly. |
19 | """ | 19 | """ |
20 | def setUp(self): | 20 | def setUp(self): |
21 | libc = self.td.get("TCLIBC") | ||
22 | if libc in [ 'newlib' ]: | ||
23 | raise unittest.SkipTest("GTK3Test class: SDK doesn't contain a supported C library") | ||
24 | |||
21 | if not (self.tc.hasTargetPackage("gtk+3", multilib=True) or \ | 25 | if not (self.tc.hasTargetPackage("gtk+3", multilib=True) or \ |
22 | self.tc.hasTargetPackage("libgtk-3.0", multilib=True)): | 26 | self.tc.hasTargetPackage("libgtk-3.0", multilib=True)): |
23 | raise unittest.SkipTest("GalculatorTest class: SDK don't support gtk+3") | 27 | raise unittest.SkipTest("GalculatorTest class: SDK don't support gtk+3") |
diff --git a/meta/lib/oeqa/sdk/cases/buildlzip.py b/meta/lib/oeqa/sdk/cases/buildlzip.py index b4b7d85b88..afedc25178 100644 --- a/meta/lib/oeqa/sdk/cases/buildlzip.py +++ b/meta/lib/oeqa/sdk/cases/buildlzip.py | |||
@@ -13,6 +13,11 @@ class BuildLzipTest(OESDKTestCase): | |||
13 | """ | 13 | """ |
14 | Test that "plain" compilation works, using just $CC $CFLAGS etc. | 14 | Test that "plain" compilation works, using just $CC $CFLAGS etc. |
15 | """ | 15 | """ |
16 | def setUp(self): | ||
17 | libc = self.td.get("TCLIBC") | ||
18 | if libc in [ 'newlib' ]: | ||
19 | raise unittest.SkipTest("MakefileTest class: SDK doesn't contain a supported C library") | ||
20 | |||
16 | def test_lzip(self): | 21 | def test_lzip(self): |
17 | with tempfile.TemporaryDirectory(prefix="lzip", dir=self.tc.sdk_dir) as testdir: | 22 | with tempfile.TemporaryDirectory(prefix="lzip", dir=self.tc.sdk_dir) as testdir: |
18 | tarball = self.fetch(testdir, self.td["DL_DIR"], "http://downloads.yoctoproject.org/mirror/sources/lzip-1.19.tar.gz") | 23 | tarball = self.fetch(testdir, self.td["DL_DIR"], "http://downloads.yoctoproject.org/mirror/sources/lzip-1.19.tar.gz") |
diff --git a/meta/lib/oeqa/sdk/cases/gcc.py b/meta/lib/oeqa/sdk/cases/gcc.py index fc28b9c3d4..e810d2c42b 100644 --- a/meta/lib/oeqa/sdk/cases/gcc.py +++ b/meta/lib/oeqa/sdk/cases/gcc.py | |||
@@ -26,6 +26,10 @@ class GccCompileTest(OESDKTestCase): | |||
26 | os.path.join(self.tc.sdk_dir, f)) | 26 | os.path.join(self.tc.sdk_dir, f)) |
27 | 27 | ||
28 | def setUp(self): | 28 | def setUp(self): |
29 | libc = self.td.get("TCLIBC") | ||
30 | if libc in [ 'newlib' ]: | ||
31 | raise unittest.SkipTest("GccCompileTest class: SDK doesn't contain a supported C library") | ||
32 | |||
29 | machine = self.td.get("MACHINE") | 33 | machine = self.td.get("MACHINE") |
30 | if not (self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine) or | 34 | if not (self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine) or |
31 | self.tc.hasHostPackage("^gcc-", regex=True)): | 35 | self.tc.hasHostPackage("^gcc-", regex=True)): |