summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-11-25 06:57:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-27 13:25:18 +0000
commit95bd5a3961b87b19b7d9fc7d30e7d5a1be2a758d (patch)
treeb495461ec7c25ad26eab0105b4a434c42621ee68 /meta/lib
parent6cde67d0a84f8339443ae43874a8e44a725926b3 (diff)
downloadpoky-95bd5a3961b87b19b7d9fc7d30e7d5a1be2a758d.tar.gz
oeqa/selftest/cases/gcc.py: Split 'gcc' and 'g++' testsuites
Split the GccCrossSelfTest testcase into separate testcases for 'gcc' and 'g++' respectively. In order to split them use the "check-gcc-*" language make check targets. (From OE-Core rev: 84cc08942fd3d17fb603e90f362a1ee5653a225d) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/gcc.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py
index 5a917b9c44..3efe15228f 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -21,8 +21,10 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
21 def run_check(self, *suites, ssh = None): 21 def run_check(self, *suites, ssh = None):
22 targets = set() 22 targets = set()
23 for s in suites: 23 for s in suites:
24 if s in ["gcc", "g++"]: 24 if s == "gcc":
25 targets.add("check-gcc") 25 targets.add("check-gcc-c")
26 elif s == "g++":
27 targets.add("check-gcc-c++")
26 else: 28 else:
27 targets.add("check-target-{}".format(s)) 29 targets.add("check-target-{}".format(s))
28 30
@@ -77,7 +79,12 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
77@OETestTag("toolchain-user") 79@OETestTag("toolchain-user")
78class GccCrossSelfTest(GccSelfTestBase): 80class GccCrossSelfTest(GccSelfTestBase):
79 def test_cross_gcc(self): 81 def test_cross_gcc(self):
80 self.run_check("gcc", "g++") 82 self.run_check("gcc")
83
84@OETestTag("toolchain-user")
85class GxxCrossSelfTest(GccSelfTestBase):
86 def test_cross_gxx(self):
87 self.run_check("g++")
81 88
82@OETestTag("toolchain-user") 89@OETestTag("toolchain-user")
83class GccLibAtomicSelfTest(GccSelfTestBase): 90class GccLibAtomicSelfTest(GccSelfTestBase):
@@ -109,7 +116,12 @@ class GccLibItmSelfTest(GccSelfTestBase):
109@OETestTag("toolchain-system") 116@OETestTag("toolchain-system")
110class GccCrossSelfTestSystemEmulated(GccSelfTestBase): 117class GccCrossSelfTestSystemEmulated(GccSelfTestBase):
111 def test_cross_gcc(self): 118 def test_cross_gcc(self):
112 self.run_check_emulated("gcc", "g++") 119 self.run_check_emulated("gcc")
120
121@OETestTag("toolchain-system")
122class GxxCrossSelfTestSystemEmulated(GccSelfTestBase):
123 def test_cross_gxx(self):
124 self.run_check_emulated("g++")
113 125
114@OETestTag("toolchain-system") 126@OETestTag("toolchain-system")
115class GccLibAtomicSelfTestSystemEmulated(GccSelfTestBase): 127class GccLibAtomicSelfTestSystemEmulated(GccSelfTestBase):