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

« back to all changes in this revision

Viewing changes to tests/xst-totem.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" ] ; then
6
 
    is_installed "totem" "run totem video test" || exit 1
7
 
    if [ -e "$HOME/Examples/Experience ubuntu.ogg" || \
8
 
         -e "$HOME/Examples/Ubuntu_Free_Culture_Showcase/StopMotionUbuntu.ogv" ] ; then
9
 
        exit 0
10
 
    else
11
 
        exit 1
12
 
    fi
13
 
fi
14
 
 
15
5
if [ -e "$HOME/Examples/Experience ubuntu.ogg" ] ; then
16
6
    MOVIE="$HOME/Examples/Experience ubuntu.ogg"
17
7
elif [ -e "$HOME/Examples/Ubuntu_Free_Culture_Showcase/StopMotionUbuntu.ogv" ] ; then
18
8
    MOVIE="$HOME/Examples/Ubuntu_Free_Culture_Showcase/StopMotionUbuntu.ogv"
19
 
else
20
 
    die "Missing Ogg Vorbis file"
21
9
fi
22
10
 
 
11
if [ "$1" = "prerequisites" ] ; then
 
12
    is_installed "totem" "run totem video test" || exit 1
 
13
    [ -e "$MOVIE" ] || exit 1
 
14
    exit 0
 
15
fi
23
16
 
24
17
 
25
18
RUNTIME=20
26
19
INT=1
27
 
MOVIE=
28
20
WNAME=$(basename $MOVIE)
29
21
 
30
22
totem "$MOVIE" &
56
48
 
57
49
 
58
50
echo "Completed all tests"
59
 
print_test_summary
 
51
if [ "${1%.json}" != "$1" ] ; then
 
52
    JSON=$1
 
53
    json_test_summary > $JSON
 
54
else
 
55
    print_test_summary
 
56
fi
 
57