aboutsummaryrefslogtreecommitdiff
path: root/test/001-basic.test
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-12 23:31:02 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-12 23:32:13 +1300
commit4ad1f662ff407644e33be1101b4b17df01c64fd0 (patch)
treee41ad272a7752ece3215b12289945d82ee55fec0 /test/001-basic.test
parente7211deebd7348ff34265cca8be7d5f5c9a9dcb1 (diff)
downloadcue-bin-split-4ad1f662ff407644e33be1101b4b17df01c64fd0.tar.xz
Added quick test framework
Diffstat (limited to 'test/001-basic.test')
-rwxr-xr-xtest/001-basic.test/run.sh8
-rw-r--r--test/001-basic.test/stderr.expected8
2 files changed, 16 insertions, 0 deletions
diff --git a/test/001-basic.test/run.sh b/test/001-basic.test/run.sh
new file mode 100755
index 0000000..4e67e1d
--- /dev/null
+++ b/test/001-basic.test/run.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+${EXECUTABLE}
+if [ $? -eq 0 ]; then
+ exit 1
+else
+ exit 0
+fi
diff --git a/test/001-basic.test/stderr.expected b/test/001-basic.test/stderr.expected
new file mode 100644
index 0000000..bdf19af
--- /dev/null
+++ b/test/001-basic.test/stderr.expected
@@ -0,0 +1,8 @@
+ERROR: Channel count, bitrate and sample size must all be present and positive
+
+Options:
+ -r bitrate_Hz
+ -c channel_count
+ -i input_file
+ -s size of a single channel's sample (bytes)
+ -f name_format (%d and co are replaced with track number)