Home | History | Annotate | Download | only in name-test
      1 #! /bin/sh
      2 
      3 ie()
      4 {
      5     if ! test -z "$DBUS_SESSION_BUS_PID" ; then
      6         echo "killing message bus "$DBUS_SESSION_BUS_PID >&2
      7         kill -9 $DBUS_SESSION_BUS_PID
      8     fi
      9     echo $SCRIPTNAME: $* >&2
     10 
     11     exit 1
     12 }
     13 
     14 
     15 SCRIPTNAME=$0
     16 MODE=$1
     17 
     18 ## so the tests can complain if you fail to use the script to launch them
     19 export DBUS_TEST_NAME_RUN_TEST_SCRIPT=1
     20 
     21 # Rerun ourselves with tmp session bus if we're not already
     22 if test -z "$DBUS_TEST_NAME_IN_RUN_TEST"; then
     23   DBUS_TEST_NAME_IN_RUN_TEST=1
     24   export DBUS_TEST_NAME_IN_RUN_TEST
     25   exec $DBUS_TOP_SRCDIR/tools/run-with-tmp-session-bus.sh $SCRIPTNAME $MODE
     26 fi 
     27 echo "running test-names"
     28 libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/name-test/test-names || die "test-client failed"
     29 
     30 echo "running test-pending-call-dispatch"
     31 libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/name-test/test-pending-call-dispatch || die "test-client failed"
     32 
     33 echo "running test-threads-init"
     34 libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/name-test/test-threads-init || die "test-client failed"
     35