From ab8295896cfd8e05655da45c85716edb104752fc Mon Sep 17 00:00:00 2001 From: "dank@chromium.org" Date: Sat, 18 Jul 2009 03:35:32 +0000 Subject: Script to valgrind layout tests Review URL: http://codereview.chromium.org/159047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21043 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/valgrind/valgrind_webkit_tests.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tools/valgrind/valgrind_webkit_tests.sh (limited to 'tools/valgrind') diff --git a/tools/valgrind/valgrind_webkit_tests.sh b/tools/valgrind/valgrind_webkit_tests.sh new file mode 100644 index 0000000..88df289 --- /dev/null +++ b/tools/valgrind/valgrind_webkit_tests.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# Script to run layout tests under valgrind +# Example: +# sh $0 LayoutTests/fast +# Caveats: +# More of an example than a universal script. +# Must be run from src directory. +# Uses our standard suppressions; edit +# tools/valgrind/memcheck/suppressions.txt +# to disable any for bugs you're trying to reproduce. + +cat > vlayout-wrapper.sh <<"_EOF_" +#!/bin/sh +valgrind --suppressions=tools/valgrind/memcheck/suppressions.txt --tool=memcheck --smc-check=all --num-callers=30 --trace-children=yes --leak-check=full --log-file=vlayout-%p.log "$@" +_EOF_ +chmod +x vlayout-wrapper.sh + +rm -f vlayout-*.log +export BROWSER_WRAPPER=`pwd`/vlayout-wrapper.sh +export G_SLICE=always-malloc +export NSS_DISABLE_ARENA_FREE_LIST=1 +sh webkit/tools/layout_tests/run_webkit_tests.sh --run-singly -v --noshow-results --time-out-ms=200000 --nocheck-sys-deps --debug "$@" +cat vlayout-*.log -- cgit v1.1