浏览代码

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>
Thomas Petazzoni 11 月之前
父节点
当前提交
ad99ad8e8a
共有 2 个文件被更改,包括 92 次插入0 次删除
  1. 1 0
      DEVELOPERS
  2. 91 0
      support/testing/tests/toolchain/test_external_synopsys.py

+ 1 - 0
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 <timo.ketola@exertus.fi>

+ 91 - 0
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)