Skip to content

Commit

Permalink
Split up the Thumb-1 test component
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bensze01 committed Oct 28, 2024
1 parent 73d8640 commit 478730e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/scripts/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 478730e

Please sign in to comment.