~ubuntu-branches/ubuntu/precise/ubuntuone-control-panel/precise

« back to all changes in this revision

Viewing changes to run-tests.bat

  • Committer: Package Import Robot
  • Author(s): Natalia Bidart (nessita)
  • Date: 2012-02-03 17:32:58 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20120203173258-fra29kcypvjv6ht6
Tags: 2.99.3-0ubuntu1
* New upstream release.
* debian/watch: updated to latest milestone.
* debian/control: updating ubuntu-sso-client and ubuntuone-client depends
  version to 2.99.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
:: Author: Natalia B. Bidart <natalia.bidart@canonical.com>
2
 
::
3
 
:: Copyright 2011 Canonical Ltd.
4
 
::
5
 
:: This program is free software: you can redistribute it and/or modify it
6
 
:: under the terms of the GNU General Public License version 3, as published
7
 
:: by the Free Software Foundation.
8
 
::
9
 
:: This program is distributed in the hope that it will be useful, but
10
 
:: WITHOUT ANY WARRANTY; without even the implied warranties of
11
 
:: MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
 
:: PURPOSE.  See the GNU General Public License for more details.
13
 
::
14
 
:: You should have received a copy of the GNU General Public License along
15
 
:: with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
 
17
 
:: call setup.py build so that the qt uic is called
18
 
 
19
 
@ECHO off
20
 
 
21
 
SET MODULE="ubuntuone"
22
 
SET PYTHONEXEPATH="C:\Python27"
23
 
SET IGNORE_PATHS="ubuntuone\controlpanel\gui\gtk, ubuntuone\controlpanel\dbustests"
 
1
:: Copyright 2011-12 Canonical Ltd.
 
2
::
 
3
:: This program is free software: you can redistribute it and/or modify it
 
4
:: under the terms of the GNU General Public License version 3, as published
 
5
:: by the Free Software Foundation.
 
6
::
 
7
:: This program is distributed in the hope that it will be useful, but
 
8
:: WITHOUT ANY WARRANTY; without even the implied warranties of
 
9
:: MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
10
:: PURPOSE.  See the GNU General Public License for more details.
 
11
::
 
12
:: You should have received a copy of the GNU General Public License along
 
13
:: with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
 
 
15
:: call setup.py build so that the qt uic is called
 
16
 
 
17
@ECHO off
 
18
 
 
19
SET MODULE="ubuntuone"
 
20
SET PYTHONEXEPATH="C:\Python27"
 
21
SET IGNORE_PATHS="ubuntuone\controlpanel\gui\gtk, ubuntuone\controlpanel\dbustests"
24
22
SET IGNORE_MODULES="test_linux.py, test_libsoup.py"
25
23
 
26
 
"%PYTHONEXEPATH%\python.exe" setup.py build
27
 
ECHO Running tests
28
 
:: execute the tests with a number of ignored linux only modules
29
 
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1trial" --reactor=qt4 --gui -p %IGNORE_PATHS% -i %IGNORE_MODULES% %MODULE%
30
 
:: Clean the build from the setupt.py
31
 
ECHO Cleaning the generated code before running the style checks...
32
 
"%PYTHONEXEPATH%\python.exe" setup.py clean
33
 
ECHO Performing style checks...
34
 
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1lint" --ignore ubuntuone\controlpanel\gui\qt\ui "%MODULE%"
35
 
"%PYTHONEXEPATH%\Scripts\pep8.exe" --exclude ".svn,CVS,.bzr,.hg,.git,*_ui.py,*_rc.py" --repeat . bin\*
36
 
:: Delete the temp folders
37
 
RMDIR /s /q _trial_temp
 
24
SET SKIPLINT=0
 
25
:: lets check if we pass the /skip-lint param, if we did we remember and use shift
 
26
if "%1" == "/skip-lint" SET SKIPLINT=1
 
27
 
 
28
"%PYTHONEXEPATH%\python.exe" setup.py build
 
29
ECHO Running tests
 
30
:: execute the tests with a number of ignored linux only modules
 
31
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1trial" --reactor=qt4 --gui -p %IGNORE_PATHS% -i %IGNORE_MODULES% %MODULE%
 
32
:: Clean the build from the setupt.py
 
33
ECHO Cleaning the generated code
 
34
"%PYTHONEXEPATH%\python.exe" setup.py clean
 
35
 
 
36
IF %SKIPLINT% == 1 GOTO :CLEAN
 
37
ECHO Performing style checks...
 
38
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1lint" --ignore ubuntuone\controlpanel\gui\qt\ui "%MODULE%"
 
39
"%PYTHONEXEPATH%\Scripts\pep8.exe" --exclude ".svn,CVS,.bzr,.hg,.git,*_ui.py,*_rc.py" --repeat . bin\*
 
40
:CLEAN
 
41
:: Delete the temp folders
 
42
RMDIR /s /q _trial_temp