diff 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
line wrap: on
line diff
--- a/tests/test-multiple-audio/test-multiple-audio.sh	Wed Oct 08 18:50:44 2014 +0100
+++ b/tests/test-multiple-audio/test-multiple-audio.sh	Thu Oct 09 10:41:40 2014 +0100
@@ -50,7 +50,17 @@
     faildiff "Output mismatch for transform $transform with summaries and 2-file input" $tmpfile $expected.csv
 
 
-# 4. Remote playlist file referring to remote audio files
+# 4. Multiple files supplied directly on command line, with file: URL
+
+$r -t $transform -w csv --csv-stdout $audiopath/3clicks.mp3 file://`pwd`/$audiopath/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \
+    fail "Fails to run transform $transform with 2-file input"
+
+expected=$mypath/expected/playlist
+csvcompare $tmpfile $expected.csv || \
+    faildiff "Output mismatch for transform $transform with summaries and 2-file input using file:// URL" $tmpfile $expected.csv
+
+
+# 5. Remote playlist file referring to remote audio files
 
 $r -t $transform -w csv --csv-stdout $urlbase/playlist.m3u --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \
     fail "Fails to run transform $transform with remote playlist input"
@@ -60,7 +70,7 @@
     faildiff "Output mismatch for transform $transform with summaries and remote playlist input" $tmpfile $expected.csv
 
 
-# 5. Local playlist file referring to mixture of remote and local audio files
+# 6. Local playlist file referring to mixture of remote and local audio files
 
 $r -t $transform -w csv --csv-stdout $audiopath/remote-playlist.m3u --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \
     fail "Fails to run transform $transform with playlist of remote files"
@@ -70,7 +80,7 @@
     faildiff "Output mismatch for transform $transform with summaries and remote playlist input" $tmpfile $expected.csv
 
 
-# 6. Multiple remote files supplied directly on command line
+# 7. Multiple remote files supplied directly on command line
 
 $r -t $transform -w csv --csv-stdout $urlbase/3clicks.mp3 $urlbase/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \
     fail "Fails to run transform $transform with 2-file remote input"
@@ -80,7 +90,7 @@
     faildiff "Output mismatch for transform $transform with summaries and 2-file input" $tmpfile $expected.csv
 
 
-# 7. Mixture of remote and local files supplied on command line
+# 8. Mixture of remote and local files supplied on command line
 
 $r -t $transform -w csv --csv-stdout $audiopath/3clicks.mp3 $urlbase/6clicks.ogg --summary-only 2>/dev/null | sed 's,^"[^"]*/,",' > $tmpfile || \
     fail "Fails to run transform $transform with 2-file remote input"