1. 08 Sep, 2014 1 commit
  2. 08 Aug, 2014 1 commit
  3. 17 Jan, 2014 3 commits
  4. 10 Jan, 2014 2 commits
  5. 09 Jan, 2014 2 commits
  6. 08 Jan, 2014 1 commit
  7. 07 Jan, 2014 1 commit
  8. 03 Sep, 2013 1 commit
    • Simon McVittie's avatar
      Tests: allow dbus-glib to be replaced with use of libdbus-internal · 30e7a813
      Simon McVittie authored
      We only use dbus-glib for its main loop; within dbus, DBusLoop is
      available as an alternative, although it isn't thread-safe and
      isn't public API.
      For tests that otherwise only use libdbus public API, it's desirable to
      be able to avoid DBusLoop, so we can run them against an installed
      libdbus as an integration test. However, if we don't have dbus-glib,
      we're going to have to use an in-tree main loop, which might as well
      be DBusLoop.
      The major disadvantage of using dbus-glib is that it isn't safe to
      link both dbus-1 and dbus-internal at the same time. This is awkward
      for a future test case that wants to use _dbus_getsid() in dbus-daemon.c,
      but only on Windows (fd.o #54445). If we use the same API wrapper around
      both dbus-glib and DBusLoop, we can compile that test against dbus-glib
      or against DBusLoop, depending on the platform.
      Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
  9. 28 Jun, 2013 1 commit
  10. 04 Jan, 2012 2 commits
  11. 21 Nov, 2011 1 commit
  12. 28 Sep, 2011 2 commits
    • Simon McVittie's avatar
      Remove EXT variable from CMake, just use Automake-compatible EXEEXT · c141af61
      Simon McVittie authored
      According to Ralf, there's no standard name for this in CMake, so we
      might as well use the standard Automake name.
      Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
      Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
      Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41222
    • Simon McVittie's avatar
      Merge tests' cmake and autotools bus configuration · e9f0378b
      Simon McVittie authored
      In Unix, the tests listened on both debug-pipe (which is a socketpair,
      or a TCP emulation of socketpair on Windows) and a Unix socket.
      In the Windows port, the tests were hard-coded to listen on a particular
      port, which allowed the dispatch test to connect to that port, as long
      as no two tests ran simultaneously (which I don't think was ever guaranteed -
      make -j can violate this). That's valid out-of-process, and also
      fully-specified, so they only needed one <listen> directive, so the
      CMake input only had one.
      To make the tests work under CMake on Unix, there was a hack: the string
      substituted for the content of the <listen> directive contained
      </listen><listen> to get the other address in, which is pretty nasty.
      Instead of doing that, I've made both build systems, on both Unix and
      Windows, use both debug-pipe and a more normal transport (Unix or TCP).
      debug-pipe has a Windows implementation and it's used in
      dbus-spawn-win.c, so it'd better work. The use of debug-pipe is now
      hard-coded rather than being a configure parameter (there's no reason
      to vary it in different builds), and I used TEST_LISTEN as the name of the
      Unix/TCP address, because it's a "vague" address (no specific Unix path, no
      TCP port), that you can listen on but not connect to.
      This in turn means that we can merge the Autoconf .in and CMake .cmake
      files, similar to Bug #41033.
      You might wonder why I've kept debug-pipe. I did try to get rid of it, but
      it turns out that the tests in dispatch.c rely on
      dbus_connection_open_private() not blocking, and normal socket
      connections block on connect(). Until we fix that by adding an async
      version of dbus_connection_open_private(), it won't be safe to have a
      test like dispatch.c that "talks to itself", unless it uses a transport
      as trivial as debug-pipe in which neither end has to block on the other.
      Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
      Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
      Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41222
  13. 29 Jul, 2011 1 commit
    • Simon McVittie's avatar
      Simplify linking for tests that use libdbus-testutils · 274e0fbc
      Simon McVittie authored
      This is the library used by tests that link libdbus-internal and DBusLoop.
      By linking libdbus-internal into it, we can avoid having to repeat that
      dependency all over the place - libtool and cmake both know how to follow
      recursive dependencies.
      In cmake, also use libdbus-testutils for more tests, in preference to
      repeating its source files.
  14. 17 Feb, 2011 1 commit
  15. 04 Dec, 2010 1 commit
  16. 13 Apr, 2010 2 commits
  17. 11 Apr, 2010 2 commits
    • Ralf Habacker's avatar
      Cmake build system cleanup. · 4d8dcd55
      Ralf Habacker authored
      Converted tabs to spaces and removed trailing spaces in test dir.
    • Ralf Habacker's avatar
      Cmake support for cross plattform usable test files. · 0ed7d779
      Ralf Habacker authored
      Recent test configuration files contains 'unix:...'
      bus adresses which do not work on windows.
      For cross plattform usable test files the whole
      listen tag entry has to be set by the build system,
      which is available with a new build system variable
      named TEST_LISTEN.
      To have the client client side definition in sync,
      TEST_CONNECTION has been moved from c file into cmake
      build system.
  18. 09 Apr, 2010 1 commit
  19. 22 Mar, 2010 2 commits
  20. 20 Mar, 2010 1 commit
    • Ralf Habacker's avatar
      CMake dbus libraries usage cleanup. · d999abda
      Ralf Habacker authored
      Renamed DBUS_LIBRARIES to DBUS_INTERNAL_LIBRARIES and moved to top level CMakeLists.txt.
      Removed obsolate references of dbus-internal library.
      Added DBUS_LIBRARIES definition which contains only the dbus library.
  21. 08 Mar, 2010 1 commit
  22. 06 Feb, 2010 2 commits
  23. 01 Dec, 2009 1 commit
  24. 30 Nov, 2009 7 commits