summaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-07-09 07:26:21 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-07-09 07:26:21 +0000
commite7bb642fdbcfa9bb1d7265781f56d89e398f90b9 (patch)
tree1ad9d16ce37e504ba72f9315c94ca9eb95597133 /test/Makefile
parentc871d820f8f00819613068aa77cb00d89e4508af (diff)
downloadquilt-e7bb642fdbcfa9bb1d7265781f56d89e398f90b9.tar.gz
- Switch from echo to printf for all translations: This is more
stable than having expansions in messages that might change independent of the message. - Add print_patch function and always use it when printing patch names. Remove -n options from various scripts and use a global switch QUILT_PATCHES_PREFIX in .quiltrc to decide between patch names with and without directory prefix. Depending on user experience this switch may eventually go away. - Add --diffstat option to refresh command: If given, this option inserts diffstat statistics at the end of the patch header, or refreshes the existing diffstat output. No special tags in the path file (%diffstat or the like) are needed. - Minor fix inserting changelog into RPM specfile.
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/test/Makefile b/test/Makefile
index 16c34b4..86a3031 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,10 +1,15 @@
-TESTS=$(wildcard *.test)
+TESTS=$(shell ls -tr *.test)
-all: $(patsubst %,_test_%,$(TESTS))
+export QUILTRC=$(CURDIR)/test.quiltrc
+ifneq ($(shell source $(QUILTRC) ; echo $$QUILT_PATCHES_PREFIX),)
+export P=patches/
+endif
+$(warning P=$(P))
-.PHONY: $(patsubst %,_test_%,$(TESTS))
-$(patsubst %,_test_%,$(TESTS)):
- @test=$(patsubst _test_%,%,$@); \
- echo "[$$test]" ; \
- export QUILTRC=$(CURDIR)/test.quiltrc ; \
- ./run $$test
+all: $(TESTS)
+
+.PHONY: $(TESTS)
+
+$(TESTS):
+ @echo "[$@]"
+ @./run $@