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 <Colm.Donelan@arm.com>
Change-Id: Ic85b4defd5ad2010bb255472c030a91a23cec1d9
diff --git a/tests/profiling/CommandLineProcessor.cpp b/tests/profiling/CommandLineProcessor.cpp
index 6affbbe..1b431c0 100644
--- a/tests/profiling/CommandLineProcessor.cpp
+++ b/tests/profiling/CommandLineProcessor.cpp
@@ -21,7 +21,11 @@
     po::options_description desc("Options");
     try
     {
-        desc.add_options()("help,h", "Display help messages");
+        desc.add_options()
+                ("help,h", "Display help messages")
+                ("namespace,n", po::value<std::string>(&m_UdsNamespace)->default_value("gatord_namespace"),
+                                "The Unix domain socket namespace this server will bind to.\n"
+                                "This will always be prepended with \\0 to use the abstract namespace");
     }
     catch (const std::exception& e)
     {
@@ -34,7 +38,7 @@
     {
         po::store(po::parse_command_line(argc, argv, desc), vm);
 
-        if (vm.count("help") || argc <= 1)
+        if (vm.count("help"))
         {
             std::cout << "Simulate a Gatord server to interact with ArmNN external profiling." << std::endl;
             std::cout << std::endl;