From ccf29e81fb1098d296e525d0d735d3e84cf44bed Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 15 Mar 2016 23:01:39 +1300 Subject: Rename test to something that actually describes what it tests --- test/004-multi-tracks.test/run.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/004-multi-tracks.test/run.sh (limited to 'test/004-multi-tracks.test/run.sh') diff --git a/test/004-multi-tracks.test/run.sh b/test/004-multi-tracks.test/run.sh new file mode 100644 index 0000000..7bb987c --- /dev/null +++ b/test/004-multi-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 -- cgit v1.1