1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-03 13:49:49 +00:00

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>
This commit is contained in:
Nathan Rossi
2019-11-25 06:57:41 +00:00
committed by Richard Purdie
parent 6cde67d0a8
commit 95bd5a3961
+16 -4
View File
@@ -21,8 +21,10 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
def run_check(self, *suites, ssh = None): def run_check(self, *suites, ssh = None):
targets = set() targets = set()
for s in suites: for s in suites:
if s in ["gcc", "g++"]: if s == "gcc":
targets.add("check-gcc") targets.add("check-gcc-c")
elif s == "g++":
targets.add("check-gcc-c++")
else: else:
targets.add("check-target-{}".format(s)) targets.add("check-target-{}".format(s))
@@ -77,7 +79,12 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
@OETestTag("toolchain-user") @OETestTag("toolchain-user")
class GccCrossSelfTest(GccSelfTestBase): class GccCrossSelfTest(GccSelfTestBase):
def test_cross_gcc(self): def test_cross_gcc(self):
self.run_check("gcc", "g++") self.run_check("gcc")
@OETestTag("toolchain-user")
class GxxCrossSelfTest(GccSelfTestBase):
def test_cross_gxx(self):
self.run_check("g++")
@OETestTag("toolchain-user") @OETestTag("toolchain-user")
class GccLibAtomicSelfTest(GccSelfTestBase): class GccLibAtomicSelfTest(GccSelfTestBase):
@@ -109,7 +116,12 @@ class GccLibItmSelfTest(GccSelfTestBase):
@OETestTag("toolchain-system") @OETestTag("toolchain-system")
class GccCrossSelfTestSystemEmulated(GccSelfTestBase): class GccCrossSelfTestSystemEmulated(GccSelfTestBase):
def test_cross_gcc(self): def test_cross_gcc(self):
self.run_check_emulated("gcc", "g++") self.run_check_emulated("gcc")
@OETestTag("toolchain-system")
class GxxCrossSelfTestSystemEmulated(GccSelfTestBase):
def test_cross_gxx(self):
self.run_check_emulated("g++")
@OETestTag("toolchain-system") @OETestTag("toolchain-system")
class GccLibAtomicSelfTestSystemEmulated(GccSelfTestBase): class GccLibAtomicSelfTestSystemEmulated(GccSelfTestBase):