Revision 395
Added by Aaron Marcuse-Kubitza about 13 years ago
input.Makefile | ||
---|---|---|
4 | 4 |
addBeforeExt = $(basename $(2))$(1)$(suffix $(2)) |
5 | 5 |
|
6 | 6 |
# Commands |
7 |
DIFF = diff --unified=2 $(+:_%=) |
|
7 |
CP = cp -p |
|
8 |
copyTo = $(CP) $(+:_%=) |
|
9 |
DIFF = diff --unified=2 |
|
8 | 10 |
|
9 | 11 |
table = $(shell s="$(*F)"; echo "$${s\#\#*.}")# remove sort order prefix |
10 | 12 |
|
... | ... | |
76 | 78 |
|
77 | 79 |
test: _always $(addprefix test-,$(tables)) |
78 | 80 |
|
79 |
test-%: test.%.ref test.%.out _always
|
|
80 |
$(DIFF) |
|
81 |
test-%: test.%.out _always |
|
82 |
$(DIFF) $(<:.out=.ref) $<
|
|
81 | 83 |
|
82 | 84 |
all += $(filter-out %.ref,$(wildcard test.*.out)) |
83 | 85 |
|
86 |
accept-%: _always |
|
87 |
$(CP) $* $(*:.out=.ref) |
|
88 |
|
|
84 | 89 |
##### |
85 | 90 |
|
86 | 91 |
ifdef db |
Also available in: Unified diff
input.Makefile: Added ability to accept a test output to use as the new reference output