test: Fix valgrind execution

We need to invoke valgrind inside of the bash wrapper instead of outside

Change-Id: Ibc5ee18d88aa697c43a232cff90ee1c989ab36ef
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/meson.build b/test/meson.build
index b644bfa..7cd906a 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -56,16 +56,25 @@
 
 run_with_tmp = find_program('run_with_tmp', native: true)
 
+add_test_setup(
+  'networkd',
+  exe_wrapper: run_with_tmp,
+  env: {'TMPTMPL': 'phosphor-networkd-test.XXXXXXXXXX'},
+  is_default: true)
+
+add_test_setup(
+  'valgrind',
+  exe_wrapper: [run_with_tmp, 'valgrind'],
+  env: {'TMPTMPL': 'phosphor-networkd-test.XXXXXXXXXX'})
+
 foreach t : tests
   test(
     t,
-    run_with_tmp,
-    args: executable(
+    executable(
       t.underscorify(),
       'test_' + t + '.cpp',
       implicit_include_directories: false,
-      dependencies: test_dep),
-    env: {'TMPTMPL': 'phosphor-networkd-test.XXXXXXXXXX'})
+      dependencies: test_dep))
 endforeach
 
 if (get_option('hyp-nw-config') == true)