From a85e215dd1b027c5ef88621d1b4d5f6e078605da Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Mon, 9 Sep 2019 11:59:08 +0100 Subject: IVGCVSW-3720 Start a UDS server that accepts connections. * Add a CLI paramter to the Gatord mock client to specify a namespace. * Open a listening socket on that namespace. * Wait for one connection on the socket. Signed-off-by: Colm Donelan Change-Id: Ic85b4defd5ad2010bb255472c030a91a23cec1d9 --- tests/profiling/GatordMockMain.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tests/profiling/GatordMockMain.cpp') diff --git a/tests/profiling/GatordMockMain.cpp b/tests/profiling/GatordMockMain.cpp index 91fa907795..b8edeb2b2d 100644 --- a/tests/profiling/GatordMockMain.cpp +++ b/tests/profiling/GatordMockMain.cpp @@ -4,8 +4,7 @@ // #include "CommandLineProcessor.hpp" - -#include +#include "GatordMockService.hpp" int main(int argc, char *argv[]) { @@ -14,5 +13,15 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } + armnn::gatordmock::GatordMockService mockService; + if (!mockService.OpenListeningSocket(cmdline.GetUdsNamespace())) + { + return EXIT_FAILURE; + } + int clientFd = mockService.BlockForOneClient(); + if (-1 == clientFd) + { + return EXIT_FAILURE; + } return EXIT_SUCCESS; } -- cgit v1.2.1