aboutsummaryrefslogtreecommitdiff
path: root/test/003-run-to-eof.test
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-13 21:46:27 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-13 21:46:27 +1300
commit69d62f539a4354d9cda85bb4748e1318abb0532f (patch)
tree6f17ca5a3d2d5c090ed9e80b991c80b05465660d /test/003-run-to-eof.test
parent715ff95dab1e510181044bcf146853f63cb5cec3 (diff)
downloadcue-bin-split-69d62f539a4354d9cda85bb4748e1318abb0532f.tar.xz
Add simple test for single track
Diffstat (limited to 'test/003-run-to-eof.test')
-rw-r--r--test/003-run-to-eof.test/run.sh8
-rw-r--r--test/003-run-to-eof.test/stdout.expected1
2 files changed, 9 insertions, 0 deletions
diff --git a/test/003-run-to-eof.test/run.sh b/test/003-run-to-eof.test/run.sh
new file mode 100644
index 0000000..6fa2fd4
--- /dev/null
+++ b/test/003-run-to-eof.test/run.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# create large file
+dd if=/dev/urandom of=raw bs=1M count=1
+
+echo 0:0:0 | ${EXECUTABLE} -r 44100 -c 1 -s 2 -i raw -f track_%d.raw
+
+diff raw track_1.raw >/dev/null && rm raw track_1.raw
diff --git a/test/003-run-to-eof.test/stdout.expected b/test/003-run-to-eof.test/stdout.expected
new file mode 100644
index 0000000..ae96076
--- /dev/null
+++ b/test/003-run-to-eof.test/stdout.expected
@@ -0,0 +1 @@
+track_1.raw starts 0.000000 s, finishes EOF