diff options
author | dank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 03:35:32 +0000 |
---|---|---|
committer | dank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 03:35:32 +0000 |
commit | ab8295896cfd8e05655da45c85716edb104752fc (patch) | |
tree | da4bcbd3d3b1170f5e860508e48ce850ee9773cb /tools | |
parent | 54f1b829fe53c48b82440e7c8482e2b6ca397995 (diff) | |
download | chromium_src-ab8295896cfd8e05655da45c85716edb104752fc.zip chromium_src-ab8295896cfd8e05655da45c85716edb104752fc.tar.gz chromium_src-ab8295896cfd8e05655da45c85716edb104752fc.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/valgrind/valgrind_webkit_tests.sh | 23 |
1 files changed, 23 insertions, 0 deletions
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 |