aboutsummaryrefslogtreecommitdiff
path: root/test/003-run-to-eof.test
diff options
context:
space:
mode:
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