comparison tests/include.sh @ 208:c17b184c16db

Update JAMS output to JAMS v0.2.0. We now (for the first time?!) write actual JAMS schema-compliant output when possible, though it isn't possible for many types of plugin. The output for all tested combinations of transforms is valid JSON even where it isn't schema-compliant.
author Chris Cannam
date Wed, 04 Nov 2015 10:07:29 +0000
parents 1f8fef5c6ea2
children b1ac129e2c00
comparison
equal deleted inserted replaced
207:e8f2f530c091 208:c17b184c16db
60 } 60 }
61 61
62 jsoncompare() { 62 jsoncompare() {
63 a="$1" 63 a="$1"
64 b="$2" 64 b="$2"
65 cat "$a" | json_reformat > "${a}__"
66 cat "$b" | json_reformat > "${b}__"
65 cmp -s "$a" "$b" 67 cmp -s "$a" "$b"
68 rv=$?
69 rm "${a}__" "${b}__"
70 return $rv
66 } 71 }
67 72
68 faildiff() { 73 faildiff() {
69 echo "Test failed: $1" 74 echo "Test failed: $1"
70 if [ -n "$2" -a -n "$3" ]; then 75 if [ -n "$2" -a -n "$3" ]; then