Files
buildroot/support/testing/tests/toolchain/test_external_synopsys.py
T
Thomas Petazzoni ad99ad8e8a support/testing/tests/toolchain/test_external_synopsys.py: new test
Test the 6 combinations of Synopsys toolchains.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2024-09-03 22:14:12 +02:00

92 lines
2.6 KiB
Python

from tests.toolchain.test_external import TestExternalToolchain
class TestExternalToolchainSynopsysArc700LE(TestExternalToolchain):
config = """
BR2_arcle=y
BR2_arc770d=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC700=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
toolchain_prefix = "arc-linux"
def test_run(self):
TestExternalToolchain.common_check(self)
class TestExternalToolchainSynopsysArc700BE(TestExternalToolchain):
config = """
BR2_arceb=y
BR2_arc770d=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC700=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
toolchain_prefix = "arceb-linux"
def test_run(self):
TestExternalToolchain.common_check(self)
class TestExternalToolchainSynopsysArcHSGlibcLE(TestExternalToolchain):
config = """
BR2_arcle=y
BR2_archs38_full=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARCHS_GLIBC=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
toolchain_prefix = "arc-linux"
def test_run(self):
TestExternalToolchain.common_check(self)
class TestExternalToolchainSynopsysArcHSGlibcBE(TestExternalToolchain):
config = """
BR2_arceb=y
BR2_archs38_full=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARCHS_GLIBC=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
toolchain_prefix = "arceb-linux"
def test_run(self):
TestExternalToolchain.common_check(self)
class TestExternalToolchainSynopsysArcHSuClibcLE(TestExternalToolchain):
config = """
BR2_arcle=y
BR2_archs38_full=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARCHS_UCLIBC=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
toolchain_prefix = "arc-linux"
def test_run(self):
TestExternalToolchain.common_check(self)
class TestExternalToolchainSynopsysArcHSuClibcBE(TestExternalToolchain):
config = """
BR2_arceb=y
BR2_archs38_full=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC=y
BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARCHS_UCLIBC=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
toolchain_prefix = "arceb-linux"
def test_run(self):
TestExternalToolchain.common_check(self)