aboutsummaryrefslogtreecommitdiff
path: root/test/004-two-tracks.test/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/004-two-tracks.test/run.sh')
-rw-r--r--test/004-two-tracks.test/run.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/004-two-tracks.test/run.sh b/test/004-two-tracks.test/run.sh
new file mode 100644
index 0000000..7bb987c
--- /dev/null
+++ b/test/004-two-tracks.test/run.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# create large file
+echo 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ > raw
+
+echo -e '0:0:0\n0:1:0\n0:4:0\n0:10:0' | ${EXECUTABLE} -r 1 -c 1 -s 1 -i raw -f track_%d.raw
+
+
+for track in track_{1..4}.raw ; do
+ diff $track $track.expected >/dev/null
+ if [ $? -eq 0 ] ; then
+ rm $track
+ else
+ exit 1
+ fi
+done
+
+rm raw