summaryrefslogtreecommitdiff
path: root/piglit-run.py
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2013-09-16 02:41:16 +0200
committerMarek Olšák <marek.olsak@amd.com>2013-09-23 23:13:53 +0200
commite85194b10adde89c03a76ce0741622778f4cc160 (patch)
tree4ac2fb045f7e54c8da95c8dca6878490b496b1b8 /piglit-run.py
parentab8be14f4b4d3dbea63fe82f6df6ecfec1879b30 (diff)
Optionally capture dmesg changes for each test and report them in a summary
The Radeon driver writes GPU page faults to dmesg and we need to know which tests caused them. If there is any change in dmesg during a test run, the test result is changed as follows: * pass -> dmesg-warn * warn -> dmesg-warn * fail -> dmesg-fail Dmesg is captured before and after each test and the difference between the two is stored in the test summary. The piglit-run.py parameter which enables this behavior is --dmesg. It's also recommended to use -c0. v2: - address some of Dylan's remarks, mainly bug fixes - fix get_dmesg_diff Reviewed-by: Dylan Baken <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-run.py')
-rwxr-xr-xpiglit-run.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/piglit-run.py b/piglit-run.py
index 33318d496..7e9979115 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -72,6 +72,9 @@ def main():
parser.add_argument("--valgrind",
action="store_true",
help="Run tests in valgrind's memcheck")
+ parser.add_argument("--dmesg",
+ action="store_true",
+ help="Capture a difference in dmesg before and after each test")
parser.add_argument("testProfile",
metavar="<Path to test profile>",
help="Path to testfile to run")
@@ -108,7 +111,8 @@ def main():
exclude_filter=args.exclude_tests,
include_filter=args.include_tests,
execute=args.execute,
- valgrind=args.valgrind)
+ valgrind=args.valgrind,
+ dmesg=args.dmesg)
# Change working directory to the root of the piglit directory
piglit_dir = path.dirname(path.realpath(sys.argv[0]))