Mercurial > hg > sonic-visualiser
comparison test/test-layer-exports.sh @ 2499:048d9eed0a1f
Small subrepo fixes, and update tests following fixes to the QM plugin used for the tests
author | Chris Cannam |
---|---|
date | Thu, 09 Apr 2020 15:00:52 +0100 |
parents | 1b6a9c0484a3 |
children | 03b12584af5b |
comparison
equal
deleted
inserted
replaced
2498:e37662b6ee64 | 2499:048d9eed0a1f |
---|---|
142 echo | 142 echo |
143 if [ -z "$pfx" ]; then | 143 if [ -z "$pfx" ]; then |
144 echo "Test failed for layer type \"$type\"!" | 144 echo "Test failed for layer type \"$type\"!" |
145 else | 145 else |
146 echo "Test failed for selected regions in layer type \"$type\"!" | 146 echo "Test failed for selected regions in layer type \"$type\"!" |
147 fi | 147 fi |
148 echo | 148 echo |
149 echo "Actual:" | 149 echo "Actual:" |
150 ls -l "$actual" | 150 ls -l "$actual" |
151 echo "Expected:" | 151 echo "Expected:" |
152 ls -l "$expected" | 152 ls -l "$expected" |
153 echo | 153 echo |
154 echo "Diff begins:" | 154 echo "Diff begins:" |
155 diff -u1 "$actual" "$expected" | head | 155 git diff --no-index --word-diff=color --word-diff-regex=. "$actual" "$expected" | head |
156 echo | 156 echo |
157 fi | 157 fi |
158 done | 158 done |
159 done | 159 done |
160 | 160 |
169 ls -l "$actual" | 169 ls -l "$actual" |
170 echo "Expected:" | 170 echo "Expected:" |
171 ls -l "$expected" | 171 ls -l "$expected" |
172 echo | 172 echo |
173 echo "Diff begins:" | 173 echo "Diff begins:" |
174 diff -u1 "$actual" "$expected" | head | 174 git diff --no-index --word-diff=color --word-diff-regex=. "$actual" "$expected" | head |
175 echo | 175 echo |
176 fi | 176 fi |
177 done | 177 done |
178 | 178 |
179 for other in notes.mid selected-notes.mid ; do | 179 for other in notes.mid selected-notes.mid ; do |
192 echo | 192 echo |
193 od -c "$actual" > "$actual".txt | 193 od -c "$actual" > "$actual".txt |
194 od -c "$expected" > "$tmpdir/expected-$other".txt | 194 od -c "$expected" > "$tmpdir/expected-$other".txt |
195 echo | 195 echo |
196 echo "Diff:" | 196 echo "Diff:" |
197 diff -u1 "$actual".txt "$tmpdir/expected-$other".txt | 197 git diff --no-index --word-diff=color --word-diff-regex=. "$actual".txt "expected-$other".txt | head |
198 echo | 198 echo |
199 fi | 199 fi |
200 done | 200 done |
201 | 201 |