Revision 4270
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/input.Makefile | ||
---|---|---|
352 | 352 |
# `rm $@`: Remove outputs of successful tests to reduce clutter |
353 | 353 |
define runTest |
354 | 354 |
@echo "Testing $(abspath $@)..." |
355 |
>$@ env test=1 n=$(test_n) $(1) |
|
355 |
>$@ env test=1 n=$(test_n) $(1) $(map2db)
|
|
356 | 356 |
@(set -x; $(diffIgnoreSpace) $(call testRef,$@) $@) 2>&1 && rm $@ || { e=$$?;\ |
357 | 357 |
$(if $(wildcard $(call testRef,$@)),,cat $@;)\ |
358 | 358 |
$(if $(hasOwnRef),\ |
... | ... | |
370 | 370 |
exit $$e;} |
371 | 371 |
endef |
372 | 372 |
|
373 |
test2Db = $(call runTest,$(map2db))
|
|
373 |
test2Db = $(runTest)
|
|
374 | 374 |
testStaged2Db = $(foreach use_staged,1,$(test2Db))# run with use_staged=1 |
375 | 375 |
|
376 | 376 |
tests := |
Also available in: Unified diff
input.Makefile: Testing: $(runTest): Always use $(map2db) because there are no tests that use other programs (and haven't been in awhile)