comparison tests/test-jams-writer/test-jams-writer.sh @ 299:c9be1a6f7d74

More reliable test
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 25 May 2017 11:31:17 +0100
parents c17b184c16db
children
comparison
equal deleted inserted replaced
298:9e98a1a8ebbd 299:c9be1a6f7d74
58 58
59 # Test digits option, with an output that has lots of digits to round 59 # Test digits option, with an output that has lots of digits to round
60 60
61 for digits in 0 6 2; do 61 for digits in 0 6 2; do
62 62
63 $r -t "$transformdir/af.n3" $mandatory --jams-digits "$digits" --jams-one-file "$tmpjson" --jams-force "$infile" 2>/dev/null || \ 63 $r -d "$testplug:grid-oss" $mandatory --jams-digits "$digits" --jams-one-file "$tmpjson" --jams-force "$silentfile" 2>/dev/null || \
64 fail "Failed to run for af with digits = $digits" 64 fail "Failed to run for af with digits = $digits"
65 65
66 expected="$mypath/expected/af-$digits.json" 66 expected="$mypath/expected/grid-oss-$digits.json"
67 jsoncompare "$tmpjson" "$expected" || \ 67 jsoncompare "$tmpjson" "$expected" || \
68 faildiff "Output differs from expected for af with digits = $digits" "$tmpjson" "$expected" 68 faildiff "Output differs from expected for af with digits = $digits" "$tmpjson" "$expected"
69 69
70 done 70 done
71 71