tools: allow running tests with valgrind (take 3)
Dan Kegel
dank at kegel.com
Fri Jul 18 18:31:43 CDT 2008
Sigh. My last try didn't take Alexandre's feedback into account properly.
This version is what he wanted, and it is truly minimal.
diff --git a/tools/runtest b/tools/runtest
index 43f513f..a3c9331 100755
--- a/tools/runtest
+++ b/tools/runtest
@@ -118,4 +118,10 @@ fi
WINETEST_PLATFORM=${platform:-wine}
export WINETEST_PLATFORM WINETEST_DEBUG
-exec "$topobjdir/wine" "$program" "$infile" "$@"
+# WINETEST_WRAPPER is normally empty, but can be set by caller, e.g.
+# WINETEST_WRAPPER=time
+# would give data about how long each test takes, and
+# WINETEST_WRAPPER=valgrind
+# would run the tests under valgrind to look for memory errors.
+
+exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" "$infile" "$@"
More information about the wine-patches
mailing list