Project

General

Profile

« Previous | Next » 

Revision 3642

input.Makefile: Testing: Renamed import.*.out tests to end in .xml because they now contain XML import trees for validation, and this extension turns on XML syntax highlighting in a text editor

View differences:

input.Makefile
394 394
# Don't abort tester if only 2-step test fails, as it's often finicky
395 395
tests += test/VegBIEN.%.2-step.xml
396 396

  
397
test/import.%.out: maps/VegBIEN.%.csv _always
397
test/import.%.xml: maps/VegBIEN.%.csv _always
398 398
	$(test2Db)
399
tests += test/import.%.out
399
tests += test/import.%.xml
400 400

  
401 401
testStaged2Db = $(foreach use_staged,1,$(test2Db))
402 402
    # run with use_staged=1
403 403

  
404 404
# Requires staging tables. To create them, run `make inputs/<datasrc>/install`.
405
test/import.%.staging.out: maps/VegBIEN.%.csv _always
406
	-$(if $(isCsv),$(testStaged2Db),cp -p $(@:.staging.out=.out) $@)
405
test/import.%.staging.xml: maps/VegBIEN.%.csv _always
406
	-$(if $(isCsv),$(testStaged2Db),cp -p $(@:.staging.xml=.xml) $@)
407 407
# Don't abort tester if only staging test fails, in case staging table missing
408 408
# Non-flat-file inputs fall back to mimicking a successful test
409
tests += test/import.%.staging.out
409
tests += test/import.%.staging.xml
410 410

  
411 411
testOutputs := $(foreach test,$(tests),$(tables:%=$(test)))
412 412

  

Also available in: Unified diff