99.1.1
by natalia.bidart at canonical
Added script to run tests in a unified manner. |
1 |
#!/bin/bash
|
2 |
#
|
|
3 |
# Copyright 2010 Canonical Ltd.
|
|
4 |
#
|
|
5 |
# This program is free software: you can redistribute it and/or modify it
|
|
6 |
# under the terms of the GNU Affero General Public License version 3,
|
|
7 |
# as published 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 Affero General Public License for more details.
|
|
13 |
#
|
|
14 |
# You should have received a copy of the GNU Affero General Public License
|
|
15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
121.1.2
by Rodney Dawes
Fix some of the remaining lint issues |
16 |
set -e
|
99.1.1
by natalia.bidart at canonical
Added script to run tests in a unified manner. |
17 |
|
151.1.7
by mike.mccracken at canonical
Add back SYSNAME so we skip cpp tests |
18 |
SYSNAME=`uname -s` |
19 |
||
121.1.1
by Rodney Dawes
Remove contrib contents and pylintrc |
20 |
/usr/bin/env python setup.py build |
145.1.2
by Guillermo Gonzalez
run the tests with both protobuf implementations (cpp extension and pure python) |
21 |
# run the tests with pure python protobuf
|
151.1.6
by mike.mccracken at canonical
Remove env vars due to formerly broken buildout |
22 |
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python u1trial tests |
151.1.2
by mike.mccracken at canonical
avoid doing protobuf cpp extension tests on darwin |
23 |
if [ "$SYSNAME" != "Darwin" ]; then |
24 |
# and with the cpp extension, for server (linux) only:
|
|
151.1.6
by mike.mccracken at canonical
Remove env vars due to formerly broken buildout |
25 |
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp u1trial tests |
151.1.2
by mike.mccracken at canonical
avoid doing protobuf cpp extension tests on darwin |
26 |
fi
|
27 |
||
151.1.6
by mike.mccracken at canonical
Remove env vars due to formerly broken buildout |
28 |
USE_PYFLAKES=1 u1lint |
121.1.1
by Rodney Dawes
Remove contrib contents and pylintrc |
29 |
/usr/bin/env python setup.py clean |
30 |
rm -rf build |
|
155.1.1
by Rodney Dawes
Ignore some new PEP8 errors for now and update code to deal with others. |
31 |
pep8 --repeat --ignore=E126,E127,E128 --exclude="*_pb2.py,.bzr,.pc,build" . |
121.1.2
by Rodney Dawes
Fix some of the remaining lint issues |
32 |
rm -rf _trial_temp |