~ubuntu-x-swat/xorg-server/xsmoke

« back to all changes in this revision

Viewing changes to tests/xst-glxgears.sh

  • Committer: Bryce Harrington
  • Date: 2008-12-06 21:41:00 UTC
  • Revision ID: bryce@canonical.com-20081206214100-95y5lrh3i1rhickr
Adding support for printing out summary info as json files

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
. $(dirname $0)/lib/xsmoke.lib
4
4
 
5
 
if [ $1 = "prerequisites" ] ; do
 
5
if [ "$1" = "prerequisites" ] ; then
6
6
    is_installed "wmctrl"   "run glxgears test" || exit 1
7
7
    is_installed "glxgears" "run glxgears test" || exit 1
8
8
    exit 0
9
9
fi
10
10
 
11
 
 
12
11
RUNTIME=6
13
12
INT=1
14
13
TMPFILE=$(mktemp) || die "Could not create temp file"
43
42
rm $TMPFILE
44
43
 
45
44
echo "Completed all tests"
46
 
print_test_summary
 
45
if [ "${1%.json}" != "$1" ] ; then
 
46
    JSON=$1
 
47
    json_test_summary > $JSON
 
48
else
 
49
    print_test_summary
 
50
fi
 
51
 
 
52