~jtatum/mago/gconf

« back to all changes in this revision

Viewing changes to gedit/run_test.sh

  • Committer: ara
  • Date: 2008-08-21 11:18:49 UTC
  • Revision ID: ara@sushirider-20080821111849-sb24p3yx5v4n1p2r
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
if [ $# -ne 1 ];
 
4
then
 
5
    echo "Syntax: ./run_open_test.sh <XML file>."
 
6
    exit 0
 
7
fi
 
8
 
 
9
if [ ! -r $1 ];
 
10
then
 
11
    echo "The XML file" $1 "cannot be read."
 
12
    exit 0
 
13
fi
 
14
 
 
15
ldtprunner $1 
 
16
 
 
17
length=$((${#1} - 4))
 
18
report="${1:0:length}"".html"
 
19
 
 
20
xsltproc -o $report report.xsl temp_log.xml
 
21
 
 
22
firefox $report &
 
23
 
 
24
exit 0
 
25