Added simple test_launch_daemon.

* Expects its config files in /boot/home/test_launch.
* Uses standard I/O, and is always in user mode.
* Also added test_launch_roster command that is able to talk to the test
  server like it does to the real thing.
This commit is contained in:
Axel Dörfler
2017-11-29 17:19:46 +01:00
parent 2028f6e7fa
commit e96835a9a4
4 changed files with 70 additions and 3 deletions
+7 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2016, Haiku, Inc. All Rights Reserved.
* Copyright 2015-2017, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -18,8 +18,13 @@
namespace BPrivate {
#define kLaunchDaemonSignature "application/x-vnd.Haiku-launch_daemon"
#define B_LAUNCH_DAEMON_PORT_NAME "system:launch_daemon"
#ifdef TEST_MODE
# define B_LAUNCH_DAEMON_PORT_NAME "test:launch_daemon"
#else
# define B_LAUNCH_DAEMON_PORT_NAME "system:launch_daemon"
#endif
// Message constants