test: console logs to file
Test for the logging feature of obmc-console-server.
Change-Id: I9836727a944a0351962133baa2fd2ff5eb60e67f
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/test/meson.build b/test/meson.build
index a204b12..4aa1829 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -32,3 +32,13 @@
)
)
endforeach
+
+socat = find_program('socat', native: true)
+
+meson.override_find_program('test-console-logs-to-file', files('test-console-logs-to-file'))
+test('test-console-logs-to-file',
+ find_program('test-console-logs-to-file'),
+ args: [ socat.full_path(), server.full_path() ],
+ depends: [ server ],
+ suite: 'itests'
+)