PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 38ms app.codeStats 0ms

/automation/monitor.sh

http://showslow.googlecode.com/
Shell | 32 lines | 24 code | 4 blank | 4 comment | 3 complexity | fb94ef601dfd17ff72dc3adfaa4bd28f MD5 | raw file
 1#!/bin/sh
 2
 3Xvfb_PIDFILE="/home/tmnz/__xvfb.pid"
 4
 5if [ -e "$Xvfb_PIDFILE" ]; then
 6    Xvfb_PID=`cat $Xvfb_PIDFILE`
 7    if [ "`ps -eo pid | grep -c $Xvfb_PID`" != 1 ]; then
 8        Xvfb :1 -screen 0 1152x856x24 -nolisten tcp > /dev/null 2>&1 &
 9        Xvfb_PID=$!
10        echo $Xvfb_PID > $Xvfb_PIDFILE
11        echo "Xvfb Started: $Xvfb_PID => $Xvfb_PIDFILE"
12    fi
13else
14    Xvfb :1 -screen 0 1152x856x24 -nolisten tcp > /dev/null 2>&1 &
15    Xvfb_PID=$!
16    echo $Xvfb_PID > $Xvfb_PIDFILE
17    echo "Xvfb Started: $Xvfb_PID => $Xvfb_PIDFILE"
18fi
19
20/home/tmnz/test_harness.pl --source http://example.com/testsuite.txt \
21  --profile /home/tmnz/TMNZA \
22  --profile /home/tmnz/TMNZB \
23  --profile /home/tmnz/TMNZC \
24  --profile /home/tmnz/TMNZD \
25  --profile /home/tmnz/TMNZE \
26  --profile /home/tmnz/TMNZF \
27  --wait 45 \
28  --display :1
29
30### This is rm is for clean-up of the Google Page Speed optimization output (about:config)
31###    user_pref("extensions.PageSpeed.optimized_file_base_dir", "/tmp/tmp.tmnz.pagespeed");
32# rm -rf /tmp/tmp.tmnz.pagespeed/*