mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-26 04:00:08 +01:00
readded test files required for windows
This commit is contained in:
parent
c4276d5901
commit
4a24e84aa7
3 changed files with 39 additions and 0 deletions
|
|
@ -172,6 +172,16 @@ FOREACH(FILE_TYPE *.conf.in *.service.in)
|
|||
ENDFOREACH(DIR)
|
||||
ENDFOREACH(FILE_TYPE)
|
||||
|
||||
#
|
||||
# the following config files are required on windows because the related
|
||||
# *.in files are not customized sufficiently.
|
||||
# TODO merge test/data/valid-config-files/debug-allow-all*.conf.in and ....cmake
|
||||
#
|
||||
SET (CONFIG_FILES test/data/valid-config-files)
|
||||
set (TEST_LISTEN "tcp:host=localhost,port=1234")
|
||||
configure_file(${CMAKE_SOURCE_DIR}/../${CONFIG_FILES}/debug-allow-all-sha1.conf.cmake ${CMAKE_BINARY_DIR}/${CONFIG_FILES}/debug-allow-all-sha1.conf )
|
||||
configure_file(${CMAKE_SOURCE_DIR}/../${CONFIG_FILES}/debug-allow-all.conf.cmake ${CMAKE_BINARY_DIR}/${CONFIG_FILES}/debug-allow-all.conf )
|
||||
|
||||
# todo: for installation the TEST_..._BINARY variables must reflect the
|
||||
# installation dir or has to be defined relative
|
||||
#
|
||||
|
|
|
|||
15
test/data/valid-config-files/debug-allow-all-sha1.conf.cmake
Normal file
15
test/data/valid-config-files/debug-allow-all-sha1.conf.cmake
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!-- Bus that listens on a debug pipe and requires SHA1 auth, used to test SHA1 -->
|
||||
|
||||
<!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>
|
||||
<servicedir>@TEST_VALID_SERVICE_DIR@</servicedir>
|
||||
<auth>DBUS_COOKIE_SHA1</auth>
|
||||
<policy context="default">
|
||||
<allow send_interface="*"/>
|
||||
<allow receive_interface="*"/>
|
||||
<allow own="*"/>
|
||||
<allow user="*"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
14
test/data/valid-config-files/debug-allow-all.conf.cmake
Normal file
14
test/data/valid-config-files/debug-allow-all.conf.cmake
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!-- 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>
|
||||
<servicedir>@TEST_VALID_SERVICE_DIR@</servicedir>
|
||||
<policy context="default">
|
||||
<allow send_interface="*"/>
|
||||
<allow receive_interface="*"/>
|
||||
<allow own="*"/>
|
||||
<allow user="*"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
Loading…
Add table
Reference in a new issue