Skip to content

Commit 36a7eb6

Browse files
jeffhostetlergitster
authored andcommitted
t0052: add simple-ipc tests and t/helper/test-simple-ipc tool
Create t0052-simple-ipc.sh with unit tests for the "simple-ipc" mechanism. Create t/helper/test-simple-ipc test tool to exercise the "simple-ipc" functions. When the tool is invoked with "run-daemon", it runs a server to listen for "simple-ipc" connections on a test socket or named pipe and responds to a set of commands to exercise/stress the communication setup. When the tool is invoked with "start-daemon", it spawns a "run-daemon" command in the background and waits for the server to become ready before exiting. (This helps make unit tests in t0052 more predictable and avoids the need for arbitrary sleeps in the test script.) The tool also has a series of client "send" commands to send commands and data to a server instance. Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7cd5dbc commit 36a7eb6

File tree

5 files changed

+912
-0
lines changed

5 files changed

+912
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ TEST_BUILTINS_OBJS += test-serve-v2.o
740740
TEST_BUILTINS_OBJS += test-sha1.o
741741
TEST_BUILTINS_OBJS += test-sha256.o
742742
TEST_BUILTINS_OBJS += test-sigchain.o
743+
TEST_BUILTINS_OBJS += test-simple-ipc.o
743744
TEST_BUILTINS_OBJS += test-strcmp-offset.o
744745
TEST_BUILTINS_OBJS += test-string-list.o
745746
TEST_BUILTINS_OBJS += test-submodule-config.o

0 commit comments

Comments
 (0)