Mercurial > hg > sonic-annotator
comparison tests/test-multiple-audio/test-multiple-audio.sh @ 125:685e5cf3cb1d
Adjustments to help text; test file:// URLs
author | Chris Cannam |
---|---|
date | Thu, 09 Oct 2014 10:41:40 +0100 |
parents | 7a31201dc42d |
children | dc82579c9a26 |
comparison
equal
deleted
inserted
replaced
124:c72889726a98 | 125:685e5cf3cb1d |
---|---|
48 expected=$mypath/expected/playlist | 48 expected=$mypath/expected/playlist |
49 csvcompare $tmpfile $expected.csv || \ | 49 csvcompare $tmpfile $expected.csv || \ |
50 faildiff "Output mismatch for transform $transform with summaries and 2-file input" $tmpfile $expected.csv | 50 faildiff "Output mismatch for transform $transform with summaries and 2-file input" $tmpfile $expected.csv |
51 | 51 |
52 | 52 |
53 # 4. Remote playlist file referring to remote audio files | 53 # 4. Multiple files supplied directly on command line, with file: URL |
54 | |
55 $r -t $transform -w csv --csv-stdout $audiopath/3clicks.mp3 file://`pwd`/$audiopath/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ | |
56 fail "Fails to run transform $transform with 2-file input" | |
57 | |
58 expected=$mypath/expected/playlist | |
59 csvcompare $tmpfile $expected.csv || \ | |
60 faildiff "Output mismatch for transform $transform with summaries and 2-file input using file:// URL" $tmpfile $expected.csv | |
61 | |
62 | |
63 # 5. Remote playlist file referring to remote audio files | |
54 | 64 |
55 $r -t $transform -w csv --csv-stdout $urlbase/playlist.m3u --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ | 65 $r -t $transform -w csv --csv-stdout $urlbase/playlist.m3u --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ |
56 fail "Fails to run transform $transform with remote playlist input" | 66 fail "Fails to run transform $transform with remote playlist input" |
57 | 67 |
58 expected=$mypath/expected/playlist | 68 expected=$mypath/expected/playlist |
59 csvcompare $tmpfile $expected.csv || \ | 69 csvcompare $tmpfile $expected.csv || \ |
60 faildiff "Output mismatch for transform $transform with summaries and remote playlist input" $tmpfile $expected.csv | 70 faildiff "Output mismatch for transform $transform with summaries and remote playlist input" $tmpfile $expected.csv |
61 | 71 |
62 | 72 |
63 # 5. Local playlist file referring to mixture of remote and local audio files | 73 # 6. Local playlist file referring to mixture of remote and local audio files |
64 | 74 |
65 $r -t $transform -w csv --csv-stdout $audiopath/remote-playlist.m3u --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ | 75 $r -t $transform -w csv --csv-stdout $audiopath/remote-playlist.m3u --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ |
66 fail "Fails to run transform $transform with playlist of remote files" | 76 fail "Fails to run transform $transform with playlist of remote files" |
67 | 77 |
68 expected=$mypath/expected/playlist | 78 expected=$mypath/expected/playlist |
69 csvcompare $tmpfile $expected.csv || \ | 79 csvcompare $tmpfile $expected.csv || \ |
70 faildiff "Output mismatch for transform $transform with summaries and remote playlist input" $tmpfile $expected.csv | 80 faildiff "Output mismatch for transform $transform with summaries and remote playlist input" $tmpfile $expected.csv |
71 | 81 |
72 | 82 |
73 # 6. Multiple remote files supplied directly on command line | 83 # 7. Multiple remote files supplied directly on command line |
74 | 84 |
75 $r -t $transform -w csv --csv-stdout $urlbase/3clicks.mp3 $urlbase/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ | 85 $r -t $transform -w csv --csv-stdout $urlbase/3clicks.mp3 $urlbase/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ |
76 fail "Fails to run transform $transform with 2-file remote input" | 86 fail "Fails to run transform $transform with 2-file remote input" |
77 | 87 |
78 expected=$mypath/expected/playlist | 88 expected=$mypath/expected/playlist |
79 csvcompare $tmpfile $expected.csv || \ | 89 csvcompare $tmpfile $expected.csv || \ |
80 faildiff "Output mismatch for transform $transform with summaries and 2-file input" $tmpfile $expected.csv | 90 faildiff "Output mismatch for transform $transform with summaries and 2-file input" $tmpfile $expected.csv |
81 | 91 |
82 | 92 |
83 # 7. Mixture of remote and local files supplied on command line | 93 # 8. Mixture of remote and local files supplied on command line |
84 | 94 |
85 $r -t $transform -w csv --csv-stdout $audiopath/3clicks.mp3 $urlbase/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ | 95 $r -t $transform -w csv --csv-stdout $audiopath/3clicks.mp3 $urlbase/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \ |
86 fail "Fails to run transform $transform with 2-file remote input" | 96 fail "Fails to run transform $transform with 2-file remote input" |
87 | 97 |
88 expected=$mypath/expected/playlist | 98 expected=$mypath/expected/playlist |