Skip to content

Commit 2b4f0e7

Browse files
committed
tests: require float_math where needed
1 parent 7b62944 commit 2b4f0e7

File tree

9 files changed

+21
-6
lines changed

9 files changed

+21
-6
lines changed

tests/core/thread_float/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include ../Makefile.core_common
22

3+
FEATURES_REQUIRED += float_math
4+
35
USEMODULE += printf_float
46
USEMODULE += ztimer_usec
57

tests/core/thread_stack_alignment/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include ../Makefile.core_common
22

3+
FEATURES_REQUIRED += float_math
4+
35
USEMODULE += printf_float
46

57
# On ESP* a custom sched_task_exit() is used that does not implement

tests/sys/float/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
include ../Makefile.sys_common
22

3+
FEATURES_REQUIRED += float_math
4+
35
include $(RIOTBASE)/Makefile.include

tests/unittests/Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ ifeq (, $(UNIT_TESTS))
88
# the $(dir) Makefile function leaves a trailing slash after the directory
99
# name, therefore we use patsubst instead.
1010
UNIT_TESTS := $(patsubst %/Makefile,%,$(wildcard tests-*/Makefile))
11+
12+
# Ignore tests needing floats on native
13+
ifneq (,$(filter native%,$(BOARD)))
14+
UNIT_TESTS := $(filter-out tests-color tests-scanf_float tests-sht1x tests-printf_float,$(UNIT_TESTS))
15+
endif
1116
else
1217
UNIT_TESTS := $(filter tests-%, $(MAKECMDGOALS))
1318
endif
1419
endif
1520

16-
ifeq (llvm,$(TOOLCHAIN))
17-
# the floating point exception bug is more likely to trigger when build
18-
# with LLVM, so we just disable LLVM on native as a work around
19-
TEST_ON_CI_BLACKLIST += native32 native64
20-
endif
21-
2221
DISABLE_MODULE += auto_init auto_init_%
2322

2423
# boards using stdio via CDC ACM require auto_init to automatically
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
FEATURES_OPTIONAL += float_math
2+
13
USEMODULE += analog_util
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
FEATURES_OPTIONAL += float_math
2+
13
USEMODULE += phydat
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
FEATURES_REQUIRED += float_math
2+
13
USEMODULE += printf_float
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
FEATURES_REQUIRED += float_math
2+
13
USEMODULE += scanf_float
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
FEATURES_REQUIRED += float_math
2+
13
USEMODULE += sht1x

0 commit comments

Comments
 (0)