summaryrefslogtreecommitdiff
path: root/cmake/test/name-test/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Move cmake related build system to top levelRalf Habacker2019-01-221-15/+0
| | | | Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
* Add cmake support for session based test executablesRalf Habacker2018-12-171-6/+7
| | | | | | | | | | | | This patch introduces a new cmake macro add_session_test_executable, which uses dbus-run-session to start a dbus-daemon process with a temporary session bus in the background and the desired client file. add_session_test_executable requires additional environment variables defined in the top level CMakeLists.txt. Bug: https://gitlab.freedesktop.org/dbus/dbus/issues/135 Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
* test-privserver: Move helper executable out of name-test/Simon McVittie2018-12-131-1/+0
| | | | | | | | | | This means we don't need to distinguish between DBUS_NAME_TEST_EXEC and DBUS_TEST_EXEC any more, because all test helper executables are in the same place, both during build and when installed (we don't install test-privserver since no installed test requires it yet, but in principle we could). Signed-off-by: Simon McVittie <smcv@collabora.com>
* Cleanup of the cmake definitions of source directoriesRalf Habacker2018-10-251-9/+9
| | | | | | | | | Since the cmake build system is located below the cmake/ subdirectory, references to the source files used such as ../../bus or ${CMAKE_SOURCE_DIR}/../dbus etc. are required. To standardize and simplify this, a cmake variable is now defined in each of the listed directories, which contains the corresponding path.
* Use macros for test and helper executable targets on cmake build system.Ralf Habacker2014-01-101-32/+8
| | | | | | | | | | | | | | | The new macros add_test_executables and add helper_executables provides a platform independent way for specifing dbus test and service applications. On native Windows and Linux/UNIX systems the test applications are directly runable. When cross compiling for Windows on Linux test applications could be executed on the Linux host system with the help of wine and activated binfmt_misc support for wine. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Tests: allow dbus-glib to be replaced with use of libdbus-internalSimon McVittie2013-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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=68852 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
* tests to embedded tests: replaced in cmake filesChengwei Yang2013-06-281-2/+2
| | | | | | Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66291
* Simplify linking for tests that use libdbus-testutilsSimon McVittie2011-07-291-4/+4
| | | | | | | | | | 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.
* Keep in sync with automake.Ralf Habacker2010-12-041-0/+4
|
* Added missing test libraries and tools to keep in sync with autotools.Ralf Habacker2010-04-131-0/+20
|
* Keep cmake build system in sync with commit ↵Ralf Habacker2010-03-221-5/+0
| | | | d47154c28b68b32177773bd489fdae62b440f38c.
* CMake dbus libraries usage cleanup.Ralf Habacker2010-03-201-3/+3
| | | | | | 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.
* commented bits cleanupRomain Pokrzywka2010-02-071-2/+0
|
* now fix the build for the tests; turns out we need another set of exports, ↵Romain Pokrzywka2010-02-071-3/+3
| | | | since some tests are compiled in the client lib and some are in the internal lib...
* fix test and binary names (cherry picked from commit ↵Frank Osterfeld2009-11-301-2/+2
| | | | 18bcf5f2d474456c57cd94da234005a23e2589a7)
* rename second test-names to test-names2 to avoid confusion (cherry picked ↵Frank Osterfeld2009-11-301-4/+3
| | | | from commit c83a2d79bb215b19b02987c9a45ed1bf07e5eeaf)
* merge changes done to the cmake-buildsystem from the sf.net windbus-svn ↵Christian Ehrlicher2009-11-301-5/+3
| | | | trunk. tested and works fine with at least msvc2008. (cherry picked from commit 45c168fd61e3f6447e014df4bb6417efbe725ccd)
* * cmake/: don't install test applications and service files, moved ↵Ralf Habacker2007-04-281-3/+3
| | | | CMAKE_DEBUG_POSTFIX to top level CMakeLists.txt
* * cmake: new directory, contains cmake build support.Ralf Habacker2007-03-031-0/+25
See http://www.cmake.org for more informations. Currently only unix will be buildable because some win32 required files are still missing.