selftest: move gdb_* and valgrind_* scripts to selftest/
[samba.git] / selftest / valgrind_run
diff --git a/selftest/valgrind_run b/selftest/valgrind_run
new file mode 100755 (executable)
index 0000000..5171d17
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+ENV="$1"
+
+shift 1
+
+CMD="$ENV valgrind -q --db-attach=yes --num-callers=30 $@"
+echo $CMD
+eval $CMD