Skip to content

Commit 80cc8b2

Browse files
committed
Makefile.in: Add support for running glibc tests
Makefile.in has support for running the regression test suite of Binutils, GCC and others. Let's add support for running glibc tests. To run the tests the following command can be used: make check-glibc-linux Tested with linux/rv64. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
1 parent ad43175 commit 80cc8b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ check-gcc: check-gcc-@default_target@
141141
check-gcc-linux: stamps/check-gcc-linux
142142
check-gcc-newlib: stamps/check-gcc-newlib
143143
check-gcc-newlib-nano: stamps/check-gcc-newlib-nano
144+
.PHONY: check-glibc-linux
145+
check-glibc-linux: $(addprefix stamps/check-glibc-linux-,$(GLIBC_MULTILIB_NAMES))
144146
.PHONY: check-dhrystone check-dhrystone-linux check-dhrystone-newlib
145147
check-dhrystone: check-dhrystone-@default_target@
146148
.PHONY: check-binutils check-binutils-linux check-binutils-newlib
@@ -881,6 +883,13 @@ stamps/check-gcc-linux: stamps/build-gcc-linux-stage2 $(SIM_STAMP) stamps/build-
881883
mkdir -p $(dir $@)
882884
date > $@
883885

886+
stamps/check-glibc-linux-%: $(addprefix stamps/build-glibc-linux-,$(GLIBC_MULTILIB_NAMES))
887+
$(eval $@_BUILD_DIR := $(notdir $@))
888+
$(eval $@_BUILD_DIR := $(subst check-,build-,$($@_BUILD_DIR)))
889+
$(SIM_PREPARE) $(MAKE) -C $($@_BUILD_DIR) check
890+
mkdir -p $(dir $@)
891+
date > $@
892+
884893
.PHONY: check-dhrystone-newlib check-dhrystone-newlib-nano
885894
check-dhrystone-newlib: $(patsubst %,stamps/check-dhrystone-newlib-%,$(NEWLIB_MULTILIB_NAMES))
886895
check-dhrystone-newlib-nano: $(patsubst %,stamps/check-dhrystone-newlib-nano-%,$(NEWLIB_MULTILIB_NAMES))

0 commit comments

Comments
 (0)