From 86f53c1e4b3cd5193c60c2eb89a0707bf4bce0d9 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 2 Jul 2008 15:45:57 +0000 Subject: Fix makefile target to run test when there are some shell script. SImply do not include SHEL_TESTS among RUNTIME_TESTS, because shell script have a their own rule to be excuted. The runtime evaluation by using the $(shell ...) command doesn't work due to immediate expansion of shell function. Currently only nptl tests have shell script, so this problem have been never discovered before. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso --- test/Test.mak | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/Test.mak b/test/Test.mak index 69291a61e..dc587deca 100644 --- a/test/Test.mak +++ b/test/Test.mak @@ -32,8 +32,8 @@ TARGETS += $(G_TARGETS) endif CLEAN_TARGETS := $(U_TARGETS) $(G_TARGETS) COMPILE_TARGETS := $(TARGETS) -TARGETS += $(SHELL_TESTS) RUN_TARGETS := $(patsubst %,%.exe,$(TARGETS)) +TARGETS += $(SHELL_TESTS) define binary_name $(patsubst %.exe,%,$@) @@ -73,13 +73,11 @@ endef test check all: run run: $(RUN_TARGETS) compile $(RUN_TARGETS): $(TARGETS) -ifeq ($(shell echo "$(SHELL_TESTS)"|grep "$(binary_name)"),) $(exec_test) $(diff_test) ifeq ($(UCLIBC_ONLY),) $(uclibc_glibc_diff_test) endif -endif compile: $(COMPILE_TARGETS) -- cgit v1.2.3