comparison tests/test-summaries.sh @ 102:fae326c22df5

Fix failure to support summary-only flag when reading transforms with summaries from a transform file
author Chris Cannam
date Wed, 01 Oct 2014 14:55:17 +0100
parents 52b9d58edb78
children 76d9d86ae6cd
comparison
equal deleted inserted replaced
101:f254f74d6b14 102:fae326c22df5
70 fail "Fails to run transform $stransform with CSV output" 70 fail "Fails to run transform $stransform with CSV output"
71 71
72 compare $tmpfile ${sexpected}.csv || \ 72 compare $tmpfile ${sexpected}.csv || \
73 faildiff "Output mismatch for transform $stransform" $tmpfile ${sexpected}.csv 73 faildiff "Output mismatch for transform $stransform" $tmpfile ${sexpected}.csv
74 74
75 $r -t $stransform -w csv --csv-stdout --summary-only $infile > $tmpfile 2>/dev/null || \
76 fail "Fails to run transform $stransform with CSV output and summary-only"
77
78 compare $tmpfile ${expected}-from-rdf-summaries-only.csv || \
79 faildiff "Output mismatch for transform $stransform with summary-only" $tmpfile ${expected}-from-rdf-summaries-only.csv
80
75 $r -t $stransform -w rdf --rdf-stdout $infile > $tmpfile 2>/dev/null || \ 81 $r -t $stransform -w rdf --rdf-stdout $infile > $tmpfile 2>/dev/null || \
76 fail "Fails to run transform $stransform with RDF output" 82 fail "Fails to run transform $stransform with RDF output"
77 83
78 rapper -i turtle $tmpfile -o turtle 2>/dev/null | grep -v '^@prefix :' | grep -v 'file:/' > $tmpcanonical || 84 rapper -i turtle $tmpfile -o turtle 2>/dev/null | grep -v '^@prefix :' | grep -v 'file:/' > $tmpcanonical ||
79 fail "Fails to produce parseable RDF/TTL for transform $stransform" 85 fail "Fails to produce parseable RDF/TTL for transform $stransform"