#!/bin/bash
(
	cd ..
	./configure --disable-shared
	make || ( echo "*** Compile FAILED"; sleep 10 )
)
export HOME=`pwd`
GNOKII=../gnokii/gnokii
for A in test.0.identify test.1.sms test.10.oplogo test.11.ringtone test.13.emspicture test.14.oplogo-xpm test.16.imelody test.17.picture2 test.18.emsanimation test.2.concatsms; do
    echo -n "Doing $A... "
    B=`echo $A | sed s/test/out/`
    source $A 2>&1 | grep -v ^GNOKII | grep -v '^Doing operation' > my$B
    if cmp my$B $B > /dev/null 2>&1; then
	echo ok
    else
	echo '*** FAILED'
	diff -u $B my$B
    fi
done
