3.2.1
by Roberto Alsina
script to run tests |
1 |
#! /bin/bash
|
2 |
#
|
|
3 |
# Author: Natalia Bidart <natalia.bidart@canonical.com>
|
|
4 |
#
|
|
5 |
# Copyright 2010 Canonical Ltd.
|
|
6 |
#
|
|
7 |
# This program is free software: you can redistribute it and/or modify it
|
|
8 |
# under the terms of the GNU General Public License version 3, as published
|
|
9 |
# by the Free Software Foundation.
|
|
10 |
#
|
|
11 |
# This program is distributed in the hope that it will be useful, but
|
|
12 |
# WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
13 |
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
|
14 |
# PURPOSE. See the GNU General Public License for more details.
|
|
15 |
#
|
|
16 |
# You should have received a copy of the GNU General Public License along
|
|
17 |
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18 |
||
19 |
set -e
|
|
20 |
||
21 |
if [ $# -ne 0 ]; then |
|
22 |
# run specific module given by the caller
|
|
23 |
MODULE="$@" |
|
24 |
else
|
|
25 |
# run all tests, useful for tarmac and reviews
|
|
26 |
MODULE="ubuntuone_installer" |
|
27 |
fi
|
|
28 |
||
29 |
style_check() { |
|
64.3.1
by Natalia B. Bidart
- Improved the test for set_up_button. |
30 |
./setup.py clean |
31 |
u1lint |
|
3.2.1
by Roberto Alsina
script to run tests |
32 |
if [ -x `which pep8` ]; then |
18.1.1
by Natalia B. Bidart
Test now pass in LInux! |
33 |
pep8 --exclude '.svn,CVS,.bzr,.hg,.git,*_ui.py,*_rc.py' --repeat .
|
3.2.1
by Roberto Alsina
script to run tests |
34 |
else
|
35 |
echo "Please install the 'pep8' package." |
|
36 |
fi
|
|
37 |
}
|
|
38 |
||
6.1.18
by Roberto Alsina
add build step to run-tests |
39 |
./setup.py build |
3.2.1
by Roberto Alsina
script to run tests |
40 |
echo "Running test suite for ""$MODULE" |
31.3.13
by Diego Sarmentero
Added test_windows to ignored list in test when they are executed in linux. |
41 |
`which xvfb-run` u1trial -i "test_windows.py" --reactor=qt4 --gui "$MODULE" |
3.2.1
by Roberto Alsina
script to run tests |
42 |
style_check |
43 |
rm -rf _trial_temp |
|
44 |
rm -rf build |