blob: b8edeb2b2d3c1092db188a211b721602b05820f1 [file] [log] [blame]
Colm Donelan366023f2019-09-05 10:03:56 +01001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "CommandLineProcessor.hpp"
Colm Donelana85e2152019-09-09 11:59:08 +01007#include "GatordMockService.hpp"
Colm Donelan366023f2019-09-05 10:03:56 +01008
9int main(int argc, char *argv[])
10{
11 armnn::gatordmock::CommandLineProcessor cmdline;
12 if (!cmdline.ProcessCommandLine(argc, argv))
13 {
14 return EXIT_FAILURE;
15 }
Colm Donelana85e2152019-09-09 11:59:08 +010016 armnn::gatordmock::GatordMockService mockService;
17 if (!mockService.OpenListeningSocket(cmdline.GetUdsNamespace()))
18 {
19 return EXIT_FAILURE;
20 }
21 int clientFd = mockService.BlockForOneClient();
22 if (-1 == clientFd)
23 {
24 return EXIT_FAILURE;
25 }
Colm Donelan366023f2019-09-05 10:03:56 +010026 return EXIT_SUCCESS;
27}