test: console-client can write

Change-Id: Iffc38fb78ebbf79f8a0bdd7cd0b8cbc5916768cc
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/test/meson.build b/test/meson.build
index fb987f0..e890313 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -43,10 +43,16 @@
   suite: 'itests'
 )
 
-meson.override_find_program('test-console-client-can-read', files('test-console-client-can-read'))
-test('test-console-client-can-read',
-  find_program('test-console-client-can-read'),
-  args: [ socat.full_path(), server.full_path(), client.full_path() ],
-  depends: [ server, client ],
-  suite: 'itests'
-)
+client_tests = [
+  'test-console-client-can-read',
+  'test-console-client-can-write',
+]
+
+foreach ct : client_tests
+  test(ct,
+    find_program(ct),
+    args: [ socat.full_path(), server.full_path(), client.full_path() ],
+    depends: [ server, client ],
+    suite: 'itests'
+  )
+endforeach