add test for 'flac --input-size'
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 30 Dec 2004 03:49:46 +0000 (03:49 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 30 Dec 2004 03:49:46 +0000 (03:49 +0000)
test/test_flac.sh

index 08cd0d1..e3bed8f 100755 (executable)
@@ -569,6 +569,22 @@ rm noise.flac z.wav
 
 
 ############################################################################
+# test --input-size
+############################################################################
+
+echo -n "testing --input-size=50 --skip=10... "
+cat 50c.raw | run_flac $raw_eopt --input-size=50 --skip=10 -o z50c.skip10.flac - || die "ERROR generating FLAC file"
+run_flac $raw_dopt -o z50c.skip10.raw z50c.skip10.flac || die "ERROR decoding FLAC file"
+cmp 50c.skip10.raw z50c.skip10.raw || die "ERROR: file mismatch for --input-size=50 --skip=10"
+rm -f z50c.skip10.raw z50c.skip10.flac
+echo OK
+
+
+############################################################################
+# test --skip and --until
+############################################################################
+
+############################################################################
 # test --cue
 ############################################################################