summaryrefslogtreecommitdiff
path: root/tests/dbus/run-test.sh.in
blob: 2e9648f0bafafd0f4f1053a25d4b8558be715f34 (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
29
30
31
32
#!/bin/sh

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

XDG_DATA_DIRS=@tpglibtestsdir@:$XDG_DATA_DIRS
export XDG_DATA_DIRS
G_SLICE=debug-blocks
export G_SLICE
G_DEBUG=fatal_warnings,fatal_criticals
export G_DEBUG
libexec=@libexec@
export libexec

if [ -n "$1" ] ; then
  list="$1"
else
  echo "Usage: $0 testname"
  exit 1
fi

for i in $list ; do 
  echo "Testing $i"
  @tpglibtestsdir@/tools/test-wrapper.sh \
  sh @tpglibtestsdir@/tools/with-session-bus.sh \
    --config-file=@tpglibtestsdir@/dbus-installed/session.conf \
    -- @tpglibtestsdir@/$i
done