Project

General

Profile

« Previous | Next » 

Revision 6446

input.Makefile: Testing: $(runTest): Ignore failed diffs when the test is compared to another test's output (e.g. in by_col mode)

View differences:

input.Makefile
444 444
define runTest
445 445
@echo "Testing $(abspath $@)..."
446 446
>$@ env test=1 n=$(test_n) $(1) $(foreach use_staged,1,$(map2db))
447
@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1 && rm $@ || { e=$$?;\
448
$(if $(wildcard $(call testRef,$@)),,cat $@;)\
447
$(if $(hasOwnRef),,-)@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1\
448
&& rm $@ || { e=$$?; $(if $(wildcard $(call testRef,$@)),,cat $@;)\
449 449
$(if $(hasOwnRef),\
450 450
{\
451 451
read -p $(emph)'Accept new test output? (y/n)'$(endEmph) REPLY;\

Also available in: Unified diff