~nataliabidart/magicicada-server/bump-client-new-namespace

« back to all changes in this revision

Viewing changes to dev-scripts/sd_test.sh

  • Committer: Magicicada Bot
  • Author(s): Natalia
  • Date: 2018-04-13 12:21:46 UTC
  • mfrom: (84.2.8 use-venv-dependencies)
  • Revision ID: magicicada_bot-20180413122146-0fd05gi5r0boges8
[r=facundo] - Use devel and non-devel dependencies from a virtualenv.
- Clean former usage of revno from versioninfo.
- Provide travis and docker files so tests can be run in Travis using a xenial image.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
# Copyright 2008-2015 Canonical
4
 
# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
5
 
#
6
 
# This program is free software: you can redistribute it and/or modify
7
 
# it under the terms of the GNU Affero General Public License as
8
 
# published by the Free Software Foundation, either version 3 of the
9
 
# License, or (at your option) any later version.
10
 
#
11
 
# This program is distributed in the hope that it will be useful,
12
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
# GNU Affero General Public License for more details.
15
 
#
16
 
# You should have received a copy of the GNU Affero General Public License
17
 
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
 
#
19
 
# For further info, check  http://launchpad.net/magicicada-server
20
 
 
21
 
# run the minimal infraestructure to run the sdtests isolated from the current session
22
 
ROOTDIR=${ROOTDIR:-`bzr root`}
23
 
ADDRESS_FILE="${ROOTDIR}/tmp/dbus.address"
24
 
make start-dbus
25
 
env DEBUG="file $DEBUG" SERVER_DEBUG="$SERVER_DEBUG" ROOTDIR=$ROOTDIR DBUS_SESSION_BUS_ADDRESS=$(cat $ADDRESS_FILE) XDG_CACHE_HOME="${ROOTDIR}/tmp/xdg_cache" \
26
 
${PYTHON:-python} -Wignore ./test $@
27
 
EXIT_VAL=$?
28
 
make stop-dbus
29
 
exit $EXIT_VAL