X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=t%2Fmakefile.test;h=904c779353bbd5e08dfab8e449e607dead8a622c;hp=d4aedf8035b1645da0b0fcb532e814d5d7ef10d6;hb=HEAD;hpb=c7250fb279af132333266af36e19c156dd84eca1 diff --git a/t/makefile.test b/t/makefile.test index d4aedf80..904c7793 100644 --- a/t/makefile.test +++ b/t/makefile.test @@ -1,4 +1,4 @@ -RM ?= rm -f +RM = rm -f results_dir := $(test_dir)/test-results trash_dir := $(test_dir)/trashes @@ -6,8 +6,9 @@ trash_dir := $(test_dir)/trashes test_options := --executables-dir $(shell pwd) test_options += --results-dir $(results_dir) test_options += --trash-dir $(trash_dir) -test_options += --executables "$(executables)" -test_options += --objects "$(basename $(notdir $(all_objs)))" +test_options += --executables "$(prefixed_executables)" +test_options += --objects "$(basename $(all_objs))" +test_options += --man-dir $(man_dir) ifdef V ifeq ("$(origin V)", "command line") @@ -15,18 +16,20 @@ ifdef V endif endif -tests := $(wildcard $(test_dir)/t[0-9][0-9][0-9][0-9]-*.sh) +tests := $(sort $(wildcard $(test_dir)/t[0-9][0-9][0-9][0-9]-*.sh)) +check: $(tests) test: $(tests) $(tests): all - $(Q) $@ $(test_options) + $(call SAY, $(@)) + $@ $(test_options) test-help: - $(Q) for t in $(tests); do $$t $(test_options) -h; done + @for t in $(tests); do $$t $(test_options) -h; done test-clean: $(RM) -r $(results_dir) $(RM) -r $(trash_dir) -.PHONY: $(tests) test-help +.PHONY: $(tests) test-help test-clean test check