Files
matchbox-tests/test-dock.sh
2004-02-03 15:18:20 +00:00

57 lines
863 B
Bash
Executable File

#!/bin/sh
# simple panel test
#
# TODO
# - divert valgrind output to a seperate log
if [ -z $(which mbdock|grep "/mbdock") ]; then
echo "$0: 'mbdock' missing! Have you installed Matchbox properly?"
exit 2 # 2 indicates mis-setup
fi
if [ -z $(which minisys|grep "/minisys") ]; then
echo "$0: mbdock applet(s) needed for testing are missing!"
exit 2
fi
# remove the old session info
rm -f ~/.matchbox/mbdock.session*123456
$VALGRIND mbdock --id 123456 &
DOCKPID=$!
sleep 5
# launch some apps
SYSTEM_TRAY_ID=123456 minisys &
APPPID=$!
sleep 2
# remove it
kill $APPPID
sleep 3
#remove the panel
kill $DOCKPID
# relaunch at top with session
$VALGRIND mbdock --orientation north --size 40 --id 123456 &
DOCKPID=$!
sleep 5
# launch some apps
SYSTEM_TRAY_ID=123456 minisys &
APPPID=$!
sleep 2
# remove it
kill $APPPID
kill $DOCKPID
exit 0