Moved end2end test with other test cases

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I58f821e31aa1a0067574bd0c443c94e4d77d29df
diff --git a/test/meson.build b/test/meson.build
index b953857..ed7ef5c 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -41,9 +41,6 @@
 
 pdbg_env = 'PDBG_DTB=' + pdbg_test_dtb.full_path()
 
-# end2end code exerciser for experiment and testing
-subdir('end2end')
-
 ################################################################################
 
 tc = 'test-bin-stream'
@@ -270,3 +267,26 @@
                  cpp_args: test_arg, include_directories: incdir)
 
 test(tc, exe, env: var)
+
+################################################################################
+
+tc = 'test-end2end'
+
+src = [
+  files(
+    tc + '.cpp',
+    '../cli.cpp',
+  ),
+  pdbg_test_dtb,
+]
+
+dep = [ gtest_dep ]
+
+var = [ pdbg_env ]
+
+exe = executable(tc.underscorify(), src, dependencies: dep,
+                 link_with : hwdiags_libs,
+                 cpp_args: test_arg, include_directories: incdir)
+
+test(tc, exe, env: var)
+