summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-11 12:55:46 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-12 20:47:24 -0800
commitd615c5e51268a23887e2d29b5828a0447ba5409b (patch)
treeb990cbbb5c56c99f445f0989783babd203610daa /tests
parent5637b36e2ed59a0c65384804b780e323c9c451c0 (diff)
downloadnng-d615c5e51268a23887e2d29b5828a0447ba5409b.tar.gz
nng-d615c5e51268a23887e2d29b5828a0447ba5409b.tar.bz2
nng-d615c5e51268a23887e2d29b5828a0447ba5409b.zip
Add IPC (UNIX domain sockets) for POSIX, and test suite.
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/ipc.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 16389601..5f8dc7f9 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -55,6 +55,7 @@ endif ()
add_nng_test(bus 5)
add_nng_test(idhash 5)
add_nng_test(inproc 5)
+add_nng_test(ipc 5)
add_nng_test(list 5)
add_nng_test(platform 5)
add_nng_test(reqrep 5)
diff --git a/tests/ipc.c b/tests/ipc.c
new file mode 100644
index 00000000..69fe36d0
--- /dev/null
+++ b/tests/ipc.c
@@ -0,0 +1,18 @@
+//
+// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+//
+// This software is supplied under the terms of the MIT License, a
+// copy of which should be located in the distribution where this
+// file was obtained (LICENSE.txt). A copy of the license may also be
+// found online at https://opensource.org/licenses/MIT.
+//
+
+#include "convey.h"
+#include "trantest.h"
+
+
+// Inproc tests.
+
+TestMain("IPC Transport", {
+ trantest_test_all("ipc:///tmp/nng_ipc_test");
+})