Project

General

Profile

« Previous | Next » 

Revision 4246

input.Makefile: Testing: $(runTest): Remove outputs of successful tests to reduce clutter

View differences:

inputs/input.Makefile
330 330
hasOwnRef = $(filter $@,$(call testRefOutput,$@))
331 331
# filter returns non-empty if they are equal
332 332

  
333
# `rm $@`: Remove outputs of successful tests to reduce clutter
333 334
define runTest
334 335
@echo "Testing $(abspath $@)..."
335 336
>$@ env test=1 n=$(test_n) $(1)
336
@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1 || { e=$$?;\
337
@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1 && rm $@ || { e=$$?;\
337 338
$(if $(wildcard $(call testRef,$@)),,cat $@;)\
338 339
$(if $(hasOwnRef),\
339 340
{\

Also available in: Unified diff