From 69d62f539a4354d9cda85bb4748e1318abb0532f Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 13 Mar 2016 21:46:27 +1300 Subject: Add simple test for single track --- test/003-run-to-eof.test/run.sh | 8 ++++++++ test/003-run-to-eof.test/stdout.expected | 1 + 2 files changed, 9 insertions(+) create mode 100644 test/003-run-to-eof.test/run.sh create mode 100644 test/003-run-to-eof.test/stdout.expected 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 -- cgit v1.1