Road to 0.9
Yven Leist
leist at beldesign.de
Wed Mar 20 18:07:33 CST 2002
On Wednesday 20 March 2002 18:56, you wrote:
> Well, that's great. If you do write the script, please post it here for
> others to use. If I write it, I'll do the same.
>
something like this might be enough:
#!/bin/bash
WINECVS="/usr/src/wine"
CONFOPTS="--prefix=/usr"
WINEOPTS=""
TESTAPPS="app1 app2"
FAILSTRINGS="Unhandled.*exception err:ntdll:RtlpWaitForCriticalSection"
MAILTO="you at yourdomain.com"
# make sure we have the latest stuff..
cd $WINECVS && cvs -z3 up -dP && configure $CONFOPTS && make && make install
for app in $TESTAPPS; do
wine $WINEOPTS $app > $app.log &
sleep 360 # starting the app might take some time..
for string in $FAILSTRINGS; do
if [ $(grep -i -c -e "$string" $app.log) != 0 ]; then
# maybe we want a diff against the old log..
if [ "$1" = "-d" ]; then
echo -e "\n\tdiff against old logfile\n" >> $app.log
diff -u $app.log $app.old >> $app.log
fi
cat $app.log | mail -s "wine problems running $app" $MAILTO
cp $app.log $app.old
killall wine
fi
done;
done;
cheers,
Yven
--
Yven Johannes Leist - leist at beldesign.de
http://www.leist.beldesign.de
More information about the wine-devel
mailing list