~ubuntu-branches/ubuntu/precise/folks/precise-201306070638

« back to all changes in this revision

Viewing changes to tests/tools/with-session-bus.sh

  • Committer: Bazaar Package Importer
  • Author(s): Brian Curtis
  • Date: 2011-02-02 14:22:14 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202142214-ngpuu3mhjxyl430f
Tags: 0.3.4-0ubuntu1
* New Upstream Release
  - libfolks-telepathy.so exports private symbols
  - Add a HACKING file that outlines development policies and coding style
  - Review coding conventions in folks
  - Add folks command line application
  - libfolks hard-codes backend names for debugging
  - Print stack traces for failed tests to improve remote debugging
  - Add static aggregation tests
  - Logger service unavailable in make check
  - Add tests for LinkedHashSet
  - Use better interface names
* debian/control
  -changed Maintainer to XSBC-Original-Maintainer
  -added Maintainer of Ubuntu Core Developers
  -changed libfolks19* > libfolks20*
* debian
  -changed .install and .symbols files from 19 > 20

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
set -e
14
14
 
15
15
me=with-session-bus
 
16
if [ "x$V" = "x" ] ; then
 
17
  V=0;
 
18
fi
16
19
 
17
20
dbus_daemon_args="--print-address=5 --print-pid=6 --fork"
18
21
sleep=0
59
62
{
60
63
  pid=`head -n1 $me-$$.pid`
61
64
  if test -n "$pid" ; then
62
 
    echo "Killing temporary bus daemon: $pid" >&2
 
65
 
 
66
    if [ $V -gt 0 ] ; then
 
67
      echo "Killing temporary bus daemon: $pid" >&2
 
68
    fi
63
69
    kill -INT "$pid"
64
70
  fi
65
71
  rm -f $me-$$.address
69
75
trap cleanup INT HUP TERM
70
76
dbus-daemon $dbus_daemon_args
71
77
 
72
 
{ echo -n "Temporary bus daemon is "; cat $me-$$.address; } >&2
73
 
{ echo -n "Temporary bus daemon PID is "; head -n1 $me-$$.pid; } >&2
 
78
{
 
79
  if [ $V -gt 0 ] ; then
 
80
    echo -n "Temporary bus daemon is "; cat $me-$$.address;
 
81
  fi
 
82
} >&2
 
83
{
 
84
  if [ $V -gt 0 ] ; then
 
85
    echo -n "Temporary bus daemon PID is "; head -n1 $me-$$.pid;
 
86
  fi
 
87
} >&2
74
88
 
75
89
e=0
76
90
DBUS_SESSION_BUS_ADDRESS="`cat $me-$$.address`"
77
91
export DBUS_SESSION_BUS_ADDRESS
78
92
 
79
93
if [ -n "$WITH_SESSION_BUS_FORK_DBUS_MONITOR" ] ; then
80
 
  echo -n "Forking dbus-monitor $WITH_SESSION_BUS_FORK_DBUS_MONITOR_OPT" >&2
 
94
  if [ $V -gt 0 ] ; then
 
95
    echo -n "Forking dbus-monitor " \
 
96
      "$WITH_SESSION_BUS_FORK_DBUS_MONITOR_OPT" >&2
 
97
  fi
81
98
  dbus-monitor $WITH_SESSION_BUS_FORK_DBUS_MONITOR_OPT \
82
99
        > $me-$$.dbus-monitor-logs 2>&1 &
83
100
fi