Mercurial > hg > sonic-annotator
comparison tests/include.sh @ 204:1f8fef5c6ea2
Add digits option to JAMS output, for number of sig figs
author | Chris Cannam |
---|---|
date | Tue, 03 Nov 2015 11:36:24 +0000 |
parents | 082c3f21f49e |
children | c17b184c16db |
comparison
equal
deleted
inserted
replaced
203:08d492f861e9 | 204:1f8fef5c6ea2 |
---|---|
11 exit 1;; | 11 exit 1;; |
12 *) | 12 *) |
13 ;; | 13 ;; |
14 esac | 14 esac |
15 | 15 |
16 version=1.2 | 16 version=1.3 |
17 nextversion=1.3 | 17 nextversion=1.4 |
18 | 18 |
19 testdir=$mypath/.. | 19 testdir=$mypath/.. |
20 r=$testdir/../sonic-annotator | 20 r=$testdir/../sonic-annotator |
21 | 21 |
22 audiopath=$testdir/audio | 22 audiopath=$testdir/audio |
55 od -c "$b" > "${b}__" | 55 od -c "$b" > "${b}__" |
56 cmp -s "${a}__" "${b}__" | 56 cmp -s "${a}__" "${b}__" |
57 rv=$? | 57 rv=$? |
58 rm "${a}__" "${b}__" | 58 rm "${a}__" "${b}__" |
59 return $rv | 59 return $rv |
60 } | |
61 | |
62 jsoncompare() { | |
63 a="$1" | |
64 b="$2" | |
65 cmp -s "$a" "$b" | |
60 } | 66 } |
61 | 67 |
62 faildiff() { | 68 faildiff() { |
63 echo "Test failed: $1" | 69 echo "Test failed: $1" |
64 if [ -n "$2" -a -n "$3" ]; then | 70 if [ -n "$2" -a -n "$3" ]; then |