My favorites | Sign in
Project Home Issues
Checkout   Browse   Changes    
 
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
28
29
30
31
32
#!/bin/sh

Xvfb_PIDFILE="/home/tmnz/__xvfb.pid"

if [ -e "$Xvfb_PIDFILE" ]; then
Xvfb_PID=`cat $Xvfb_PIDFILE`
if [ "`ps -eo pid | grep -c $Xvfb_PID`" != 1 ]; then
Xvfb :1 -screen 0 1152x856x24 -nolisten tcp > /dev/null 2>&1 &
Xvfb_PID=$!
echo $Xvfb_PID > $Xvfb_PIDFILE
echo "Xvfb Started: $Xvfb_PID => $Xvfb_PIDFILE"
fi
else
Xvfb :1 -screen 0 1152x856x24 -nolisten tcp > /dev/null 2>&1 &
Xvfb_PID=$!
echo $Xvfb_PID > $Xvfb_PIDFILE
echo "Xvfb Started: $Xvfb_PID => $Xvfb_PIDFILE"
fi

/home/tmnz/test_harness.pl --source http://example.com/testsuite.txt \
--profile /home/tmnz/TMNZA \
--profile /home/tmnz/TMNZB \
--profile /home/tmnz/TMNZC \
--profile /home/tmnz/TMNZD \
--profile /home/tmnz/TMNZE \
--profile /home/tmnz/TMNZF \
--wait 45 \
--display :1

### This is rm is for clean-up of the Google Page Speed optimization output (about:config)
### user_pref("extensions.PageSpeed.optimized_file_base_dir", "/tmp/tmp.tmnz.pagespeed");
# rm -rf /tmp/tmp.tmnz.pagespeed/*

Change log

r205 by aaron.cbs on May 21, 2010   Diff
Corrected exists test to use the
variable... Added nolisten per feedback
from Kender in groups.
Go to: 
Project members, sign in to write a code review

Older revisions

r146 by aaron.cbs on Mar 30, 2010   Diff
Fixed logic if there is no PID file...
start Xvfb
r144 by aaron.cbs on Mar 30, 2010   Diff
Added Xvfb start logic to the
monitor.sh wrapper
r138 by aaron.cbs on Mar 26, 2010   Diff
Added automation script + wrapper and
first draft of documentation
All revisions of this file

File info

Size: 1049 bytes, 32 lines

File properties

svn:executable
*
Powered by Google Project Hosting