~zsombi/ubuntu-ui-toolkit/dialog-title-fix

« back to all changes in this revision

Viewing changes to tests/uitk_test_plan.sh

  • Committer: Zsombor Egri
  • Date: 2014-08-28 08:46:48 UTC
  • mfrom: (1223.1.1 staging)
  • Revision ID: zsombor.egri@canonical.com-20140828084648-s7sv0e79ud97q2n1
staging merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
SERIALNUMBER=086e443edf51b915
20
20
RESET=false
21
21
COMISSION=false
22
 
RUNTESTS=true
 
22
DONOTRUNTESTS=false
23
23
PPA="ppa:ubuntu-sdk-team/staging"
24
24
TIMESTAMP=`date +"%Y_%m_%d-%H_%M_%S"`
25
25
LOGFILENAME="ap-${TIMESTAMP}"
92
92
        adb -s ${SERIALNUMBER} shell apt-get update
93
93
        # install the autopilot tests 
94
94
        adb -s ${SERIALNUMBER} shell apt-get install -y address-book-service-dummy \
 
95
                                                        python3-lxml \
95
96
                                                        ubuntu-ui-toolkit-autopilot \
96
97
                                                        gallery-app-autopilot \
97
98
                                                        reminders-app-autopilot \
131
132
                        COMISSION=true
132
133
                        ;;
133
134
                n)
134
 
                        RUNTESTS=false
 
135
                        DONOTRUNTESTS=true
135
136
                        ;;
136
137
                h)
137
138
                        echo "Usage: uitk_test_plan.sh -s [serial number] -m -c"
138
139
                        echo " -r : Reset after each tests. Default: ${RESET}"
139
140
                        echo " -s : Use the device with the given serial number. Default: ${SERIALNUMBER}"
140
141
                        echo " -c : Comission the device with the ${PPA} enabled"
141
 
                        echo " -n : Do not run the test set. Default ${RUNTESTS}"
 
142
                        echo " -n : Do not run the test set. Default ${DONOTRUNTESTS}"
142
143
                        echo " -o : Output directory. Default $OUTPUTDIR"
143
144
                        echo " -p : Source PPA for the UITK. Default $PPA"
144
145
                        echo " -f : Filter for the test suite. Default $FILTER"
162
163
fi
163
164
 
164
165
# Check if the device need to be flashed and set up for testing
165
 
if [ ${COMISSION} == true  ]; then
 
166
if [ ${COMISSION} == true ]; then
166
167
        device_comission
167
168
fi
168
169
 
169
170
# Check if the job is only comissioning the device
170
 
if [ ${RUNTESTS} != true  ]; then
 
171
if [ ${DONOTRUNTESTS} == true ]; then
171
172
        exit
172
173
fi
173
174
 
174
 
if [ ${RESET} == false  ]; then
 
175
if [ ${RESET} == false ]; then
175
176
        echo "Reset the device for testing."
176
177
        RESET=true
177
178
        reset