mirror of
				https://git.yoctoproject.org/matchbox-tests
				synced 2025-11-04 13:05:39 +08:00 
			
		
		
		
	git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-tests@656 b067294f-1dea-0310-9683-c47a78595994
		
			
				
	
	
		
			57 lines
		
	
	
		
			863 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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
 | 
						|
 |