1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/xfa/Makefile
Gaëtan Harter 3099e02953 xfa: add a test script
Enable it for CI test
2021-02-18 10:46:08 +01:00

13 lines
504 B
Makefile

include ../Makefile.tests_common
include $(RIOTBASE)/Makefile.include
all: static-test
static-test: $(ELFFILE)
$(Q)TEST_STARTADDR=$$($(OBJDUMP) -t $< | grep -E '\sxfatest_const$$' | awk '{ printf "0x%s", $$1}'); \
TEST_ENDADDR=$$($(OBJDUMP) -t $< | grep -E '\sxfatest_const_end$$' | awk '{ printf "0x%s", $$1}'); \
if test ! $$((TEST_STARTADDR)) -lt $$((TEST_ENDADDR)); then \
echo "Error: Static check of XFA linked const array failed, verify linker flags and try again" >&2; \
exit 1; \
fi