Project

General

Profile

« Previous | Next » 

Revision 4272

input.Makefile: Testing: Moved `$(foreach use_staged,1,...)` from $(test2Db) to $(runTest) because all tests now use the staging tables

View differences:

inputs/input.Makefile
350 350
# filter returns non-empty if they are equal
351 351

  
352 352
# `rm $@`: Remove outputs of successful tests to reduce clutter
353
# `$(foreach use_staged...)`: Run with use_staged=1
353 354
define runTest
354 355
@echo "Testing $(abspath $@)..."
355
>$@ env test=1 n=$(test_n) $(1) $(map2db)
356
>$@ env test=1 n=$(test_n) $(1) $(foreach use_staged,1,$(map2db))
356 357
@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1 && rm $@ || { e=$$?;\
357 358
$(if $(wildcard $(call testRef,$@)),,cat $@;)\
358 359
$(if $(hasOwnRef),\
......
370 371
exit $$e;}
371 372
endef
372 373

  
373
test2Db = $(foreach use_staged,1,$(runTest))# run with use_staged=1
374
test2Db = $(runTest)
374 375

  
375 376
tests :=
376 377

  

Also available in: Unified diff