From ad99ad8e8a284c635a87452de573a8700025ec9f Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 10 Aug 2024 23:56:21 +0200 Subject: [PATCH] support/testing/tests/toolchain/test_external_synopsys.py: new test Test the 6 combinations of Synopsys toolchains. Signed-off-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN --- DEVELOPERS | 1 + .../tests/toolchain/test_external_synopsys.py | 91 +++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 support/testing/tests/toolchain/test_external_synopsys.py diff --git a/DEVELOPERS b/DEVELOPERS index 46fd9c3a48..ed64906fc5 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3209,6 +3209,7 @@ F: support/testing/tests/package/test_python_flask_expects_json.py F: support/testing/tests/package/test_python_git.py F: support/testing/tests/package/test_python_unittest_xml_reporting.py F: support/testing/tests/toolchain/test_external_arm.py +F: support/testing/tests/toolchain/test_external_synopsys.py F: toolchain/ N: Timo Ketola diff --git a/support/testing/tests/toolchain/test_external_synopsys.py b/support/testing/tests/toolchain/test_external_synopsys.py new file mode 100644 index 0000000000..19ed9f67b0 --- /dev/null +++ b/support/testing/tests/toolchain/test_external_synopsys.py @@ -0,0 +1,91 @@ +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)