summaryrefslogtreecommitdiff
path: root/test/Test.mak
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-25 15:56:28 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-26 18:49:48 +0100
commit0aee3966d647af55231db535b61553531f64d02e (patch)
tree26349c00766d783b251b3e35e6654979fcbfad3b /test/Test.mak
parent3a8d2129f4db2fcdb673f2438cb39963550f73d0 (diff)
sync confname, environments with glibc
Plus related synch. Add a testcase for the sysconf variables based on the one from glibc Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/Test.mak')
-rw-r--r--test/Test.mak8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Test.mak b/test/Test.mak
index 2dab7f741..ce8906208 100644
--- a/test/Test.mak
+++ b/test/Test.mak
@@ -29,10 +29,14 @@ TARGETS += $(G_TARGETS)
endif
CLEAN_TARGETS := $(U_TARGETS) $(G_TARGETS)
+CLEAN_TARGETS += $(TESTS_DISABLED) $(addsuffix _glibc,$(TESTS_DISABLED))
COMPILE_TARGETS := $(TARGETS)
RUN_TARGETS := $(addsuffix .exe,$(TARGETS))
+# provide build rules even for disabled tests:
+U_TARGETS += $(TESTS_DISABLED)
+G_TARGETS += $(addsuffix _glibc,$(TESTS_DISABLED))
TARGETS += $(SHELL_TESTS)
-CFLAGS+=$(CFLAGS_$(notdir $(CURDIR)))
+CFLAGS += $(CFLAGS_$(notdir $(CURDIR)))
define binary_name
$(patsubst %.exe,%,$@)
@@ -101,7 +105,9 @@ $(G_TARGETS): $(U_TARGET_SRCS) $(MAKE_SRCS)
shell_%:
$(showtest)
+ $(Q)$(if $(PRE_RUN_$(@)),$(PRE_RUN_$(@)))
$(Q)$(SHELL) $(patsubst shell_%,%.sh,$(binary_name))
+ $(Q)$(if $(POST_RUN_$(@)),$(POST_RUN_$(@)))
%.so: %.c
$(showlink)