From 478730eed2e575d87cd96040856de8267a0ca7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sz=C3=A9pk=C3=BAti?= Date: Thu, 18 Jul 2024 16:08:22 +0200 Subject: [PATCH] Split up the Thumb-1 test component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Thumb-1 tests are by far the slowest, so split the -O0 and -Os tests into their own components. Signed-off-by: Bence Szépkúti --- tests/scripts/all.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index f00b1b3094ec..88b3fa058df2 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -3309,9 +3309,9 @@ support_test_arm_linux_gnueabi_gcc_arm5vte () { can_run_arm_linux_gnueabi } -component_test_arm_linux_gnueabi_gcc_thumb_1 () { - # The hard float ABI is not implemented for Thumb 1, so use gnueabi - # Some Thumb 1 asm is sensitive to optimisation level, so test both -O0 and -Os +# The hard float ABI is not implemented for Thumb 1, so use gnueabi +# Some Thumb 1 asm is sensitive to optimisation level, so test both -O0 and -Os +component_test_arm_linux_gnueabi_gcc_thumb_1_opt_0 () { msg "test: ${ARM_LINUX_GNUEABI_GCC_PREFIX}gcc -O0, thumb 1, default config" # ~2m 10s make CC="${ARM_LINUX_GNUEABI_GCC_PREFIX}gcc" CFLAGS='-std=c99 -Werror -Wextra -O0 -mcpu=arm1136j-s -mthumb' @@ -3323,9 +3323,14 @@ component_test_arm_linux_gnueabi_gcc_thumb_1 () { msg "program demos: make, default config (out-of-box)" # ~0s tests/scripts/run_demos.py +} + +support_test_arm_linux_gnueabi_gcc_thumb_1_opt_0 () { + can_run_arm_linux_gnueabi +} +component_test_arm_linux_gnueabi_gcc_thumb_1_opt_s () { msg "test: ${ARM_LINUX_GNUEABI_GCC_PREFIX}gcc -Os, thumb 1, default config" # ~3m 10s - make clean make CC="${ARM_LINUX_GNUEABI_GCC_PREFIX}gcc" CFLAGS='-std=c99 -Werror -Wextra -Os -mcpu=arm1136j-s -mthumb' msg "test: main suites make, default config (out-of-box)" # ~21m 10s @@ -3338,7 +3343,7 @@ component_test_arm_linux_gnueabi_gcc_thumb_1 () { tests/scripts/run_demos.py } -support_test_arm_linux_gnueabi_gcc_thumb_1 () { +support_test_arm_linux_gnueabi_gcc_thumb_1_opt_s () { can_run_arm_linux_gnueabi }