Project

General

Profile

« Previous | Next » 

Revision 513

input.Makefile: All tests are run in the same transaction, with output to test.out

View differences:

inputs/SALVIAS/test/plots.ref
1
Processed 2 input rows
2
Inserted 28 new rows into database
inputs/SALVIAS/test/organisms.ref
1
Processed 2 input rows
2
Inserted 124 new rows into database
inputs/SALVIAS/test/stems.ref
1
Processed 2 input rows
2
Inserted 0 new rows into database
inputs/SALVIAS/test.ref
1
Processed 2 input rows
2
Processed 2 input rows
3
Processed 2 input rows
inputs/input.Makefile
84 84

  
85 85
#####
86 86

  
87
test: _always $(addprefix test-,$(tables)) ;
88

  
89
test-%: test/%.out _always
87
test: test.out _always
90 88
	$(DIFF) $(<:.out=.ref) $<
91 89

  
92
accept-%: _always
93
	$(CP) $* $(*:.out=.ref)
90
all += test.out
94 91

  
95
all += $(wildcard test/*.out)
92
accept: _always
93
	$(CP) test.out test.ref
96 94

  
97 95
#####
98 96

  
......
142 140

  
143 141
####
144 142

  
145
test/%.out: maps/VegBIEN.%.csv _always
146
	env test=1 n=$(test_n) $(map) $< >$@ 2>&1 || { e=$$?; cat $@; exit $$e;}
147
.PRECIOUS: test/%.out
143
test.out: $(vegbienMaps) _always
144
	env test=1 n=$(test_n) $(map) $(+_) >$@ 2>&1 || { e=$$?; cat $@; exit $$e;}
145
.PRECIOUS: test.out
148 146

  
149 147
#####
150 148

  

Also available in: Unified diff