Revision 3721
Added by Aaron Marcuse-Kubitza over 12 years ago
input.Makefile | ||
---|---|---|
51 | 51 |
mkdir = $(MKDIR) $(@D) |
52 | 52 |
CP = cp -p |
53 | 53 |
diff = diff --unified=2 |
54 |
diffIgnoreSpace = $(diff) --ignore-space-change |
|
54 | 55 |
diffVerbose = $(if $(verbose),diff --side-by-side --left-column\ |
55 | 56 |
--width=$(termCols),$(diff)) |
56 | 57 |
|
... | ... | |
359 | 360 |
define runTest |
360 | 361 |
@echo "Testing $(abspath $@)..." |
361 | 362 |
>$@ env test=1 n=$(test_n) $(1) |
362 |
@(set -x; $(diff) $(call testRef,$@) $@) 2>&1 || { e=$$?;\ |
|
363 |
@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1 || { e=$$?;\
|
|
363 | 364 |
$(if $(wildcard $(call testRef,$@)),,cat $@;)\ |
364 | 365 |
$(if $(hasOwnRef),\ |
365 | 366 |
{\ |
Also available in: Unified diff
input.Makefile: Testing: diffing test outputs: Ignore changes in whitespace, due to e.g. different indent levels. This facilitates accepting tests when an element has been nested inside another element (or unnested), by showing only the opening and closing tags of the new outer element.