test2.sh 623 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/bin/bash

testdir="$(dirname "$(readlink -f $0)")"

(
cd "$top_builddir"
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13; do
  echo -----------------------------------------------------------------------
  echo Test 2/$i
  echo -----------------------------------------------------------------------

  ./shptest $i
  ./shpdump test${i}.shp
done
) > "$testdir/s2.out"

result="$(diff "$testdir/s2.out" "$testdir/stream2.out")"
if [ "$result" == "" ]; then
	echo "******* Stream 2 Succeeded *********"
	rm "$testdir/s2.out"
	exit 0
else
	echo "******* Stream 2 Failed *********"
	echo "$result"
	rm "$testdir/s2.out"
	exit 1
fi