aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/GatordMockMain.cpp
diff options
context:
space:
mode:
authorColm Donelan <Colm.Donelan@arm.com>2019-09-05 10:03:56 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-09-06 12:13:51 +0000
commit366023fcb63d0ade5bd742ede2fc27899296877c (patch)
tree9c940e53ff15d31461f6c44067dcaf41c1a181f4 /tests/profiling/GatordMockMain.cpp
parent07882f1750f0ff83a955fe8e9c363ca26059f084 (diff)
downloadarmnn-366023fcb63d0ade5bd742ede2fc27899296877c.tar.gz
IVGCVSW-3719 Create test program executable.
Introduce a new test utility that simulates the Gatord service. This will be used to test the external profiling features. Change-Id: Ib7c75c1302650e140945cd66d272c23af3aac760 Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Diffstat (limited to 'tests/profiling/GatordMockMain.cpp')
-rw-r--r--tests/profiling/GatordMockMain.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/profiling/GatordMockMain.cpp b/tests/profiling/GatordMockMain.cpp
new file mode 100644
index 0000000000..91fa907795
--- /dev/null
+++ b/tests/profiling/GatordMockMain.cpp
@@ -0,0 +1,18 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "CommandLineProcessor.hpp"
+
+#include <cstdlib>
+
+int main(int argc, char *argv[])
+{
+ armnn::gatordmock::CommandLineProcessor cmdline;
+ if (!cmdline.ProcessCommandLine(argc, argv))
+ {
+ return EXIT_FAILURE;
+ }
+ return EXIT_SUCCESS;
+}