[Patch] Cross plattform usable test files

Ralf Habacker ralf.habacker at freenet.de
Fri Apr 9 15:03:26 PDT 2010


Hi,

recent test configuration files contains 'unix:...' bus adresses which 
do not work on windows.

The appended patch fixes this issue for cmake (and contains a minor fix 
not to break autotools buildsystem) .

The details:

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 on the same place 
TEST_CONNECTION has been moved from c file into cmake build system.

If someone with autotools knowledge would add the missing stuff, we can 
apply the required test config changes directly to the related *.in 
files instead of adding additional .cmake files.

I did not found the reason why on unix 
test/data/valid-config-files-system/debug-allow-all-pass.conf.in and 
friends do have two listen statements:

  <listen>debug-pipe:name=test-server</listen>
  <listen>unix:tmpdir=@TEST_SOCKET_DIR@</listen>

If both are really required TEST_LISTEN on unix should have the content  
"debug-pipe:name=test-server</listen><listen>unix:tmpdir=@TEST_SOCKET_DIR@". 
In cmake I used only the first one.

Regards
 Ralf


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Cmake-support-for-cross-plattform-usable-test-files.patch
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100410/e761adbe/attachment.asc>


More information about the dbus mailing list