summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-04-09 23:34:28 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2010-04-11 11:49:46 +0200
commit0ed7d779b784f30ff9781c0ad47a03af199531a6 (patch)
tree462c95dc95a4e6507d34bf18cfd3a962d68b8ed1 /test/data
parent2279457cbcf5064703647ba3f790445cb1803a79 (diff)
downloaddbus-0ed7d779b784f30ff9781c0ad47a03af199531a6.tar.gz
Cmake support for cross plattform usable test files.
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.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/valid-config-files-system/debug-allow-all-fail.conf.cmake16
-rw-r--r--test/data/valid-config-files-system/debug-allow-all-pass.conf.cmake16
2 files changed, 32 insertions, 0 deletions
diff --git a/test/data/valid-config-files-system/debug-allow-all-fail.conf.cmake b/test/data/valid-config-files-system/debug-allow-all-fail.conf.cmake
new file mode 100644
index 00000000..0c73d8c9
--- /dev/null
+++ b/test/data/valid-config-files-system/debug-allow-all-fail.conf.cmake
@@ -0,0 +1,16 @@
+<!-- Bus that listens on a debug pipe and doesn't create any restrictions -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <listen>@TEST_LISTEN@</listen>
+ <type>system</type>
+ <servicehelper>@TEST_LAUNCH_HELPER_BINARY@</servicehelper>
+ <servicedir>@TEST_INVALID_SERVICE_SYSTEM_DIR@</servicedir>
+ <policy context="default">
+ <allow send_interface="*"/>
+ <allow receive_interface="*"/>
+ <allow own="*"/>
+ <allow user="*"/>
+ </policy>
+</busconfig>
diff --git a/test/data/valid-config-files-system/debug-allow-all-pass.conf.cmake b/test/data/valid-config-files-system/debug-allow-all-pass.conf.cmake
new file mode 100644
index 00000000..d46ec184
--- /dev/null
+++ b/test/data/valid-config-files-system/debug-allow-all-pass.conf.cmake
@@ -0,0 +1,16 @@
+<!-- Bus that listens on a debug pipe and doesn't create any restrictions -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <listen>@TEST_LISTEN@</listen>
+ <type>system</type>
+ <servicehelper>@TEST_LAUNCH_HELPER_BINARY@</servicehelper>
+ <servicedir>@TEST_VALID_SERVICE_SYSTEM_DIR@</servicedir>
+ <policy context="default">
+ <allow send_interface="*"/>
+ <allow receive_interface="*"/>
+ <allow own="*"/>
+ <allow user="*"/>
+ </policy>
+</busconfig>