aboutsummaryrefslogtreecommitdiff
path: root/test/004-multi-tracks.test/run.sh
blob: 7bb987cce8489a5295169292a5e8d5602bd2dde7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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