summaryrefslogtreecommitdiff
path: root/tests/twisted/run-test.sh.in
blob: 311a89d15637fb989b2e9faa0080f2f7c246da35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

script_fullname=`readlink -e "@gabbletestsdir@/twisted/run-test.sh"`
if [ `readlink -e "$0"` != "$script_fullname" ] ; then
  echo "This script is meant to be installed at $script_fullname"
  exit 1
fi

PYTHONPATH=@gabbletestsdir@/twisted
export PYTHONPATH

GABBLE_TWISTED_PATH=@gabbletestsdir@/twisted
export GABBLE_TWISTED_PATH

if [ -n "$1" ] ; then
  list="$1"
else
  list=$(cat @gabbletestsdir@/twisted/gabble-twisted-tests.list)
fi

for i in $list ; do 
  echo "Testing $i"
  sh @gabbletestsdir@/twisted/tools/with-session-bus.sh \
    --config-file=@gabbletestsdir@/twisted/tools/servicedir/tmp-session-bus.conf \
    -- \
    @PYTHON@ @gabbletestsdir@/twisted/$i
done