Browse Source

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 <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>

Carmelo Amoroso 16 years ago
parent
commit
86f53c1e4b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      test/Test.mak

+ 1 - 3
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)