console-client: Enable use of a configuration file

However, only initialise a config if the option was provided. This
avoids searching for the default config, which may not exist and is
intended for the server.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I08f736243c1843bfb8855f5ceb69418d59a8775a
diff --git a/test/Makefile.am b/test/Makefile.am
index 1ddf5bd..8fc0839 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -18,3 +18,7 @@
 
 AM_CPPFLAGS = -I$(top_srcdir)
 AM_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
+
+test_client_escape_CPPFLAGS = \
+	$(AM_CPPFLAGS) \
+	-DSYSCONFDIR=\"\"
diff --git a/test/test-client-escape.c b/test/test-client-escape.c
index eeae015..921009c 100644
--- a/test/test-client-escape.c
+++ b/test/test-client-escape.c
@@ -19,6 +19,7 @@
 #include <stdio.h>
 
 #define read __read
+#include "config.c"
 #include "console-socket.c"
 #define main __main
 #include "console-client.c"