OLD | NEW |
1 # Running layout tests on Linux | 1 # Running layout tests on Linux |
2 | 2 |
3 1. Build `blink_tests` (see [Linux-specific build instructions](https://chromiu
m.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md)) | 3 1. Build `blink_tests` (see [Linux-specific build instructions](https://chromiu
m.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md)) |
4 1. Checkout the layout tests | 4 1. Checkout the layout tests |
5 * If you have an entry in your `.gclient` file that includes | 5 * If you have an entry in your `.gclient` file that includes |
6 "LayoutTests", you may need to comment it out and sync. | 6 "LayoutTests", you may need to comment it out and sync. |
7 * You can run a subset of the tests by passing in a path relative to | 7 * You can run a subset of the tests by passing in a path relative to |
8 `src/third_party/WebKit/LayoutTests/`. For example, | 8 `src/third_party/WebKit/LayoutTests/`. For example, |
9 `run_layout_tests.py fast` will only run the tests under | 9 `run_layout_tests.py fast` will only run the tests under |
10 `src/third_party/WebKit/LayoutTests/fast/`. | 10 `src/third_party/WebKit/LayoutTests/fast/`. |
(...skipping 22 matching lines...) Expand all Loading... |
33 You can also just run `build/install-build-deps.sh` again. | 33 You can also just run `build/install-build-deps.sh` again. |
34 | 34 |
35 ## Plugins | 35 ## Plugins |
36 | 36 |
37 If `fast/dom/object-plugin-hides-properties.html` and | 37 If `fast/dom/object-plugin-hides-properties.html` and |
38 `plugins/embed-attributes-style.html` are failing, try uninstalling | 38 `plugins/embed-attributes-style.html` are failing, try uninstalling |
39 `totem-mozilla` from your system: | 39 `totem-mozilla` from your system: |
40 | 40 |
41 sudo apt-get remove totem-mozilla | 41 sudo apt-get remove totem-mozilla |
42 | 42 |
43 | |
44 ## Running layout tests under valgrind on Linux | |
45 | |
46 As above, but use `tools/valgrind/chrome_tests.sh -t webkit` instead. e.g. | |
47 | |
48 sh tools/valgrind/chrome_tests.sh -t webkit LayoutTests/fast/ | |
49 | |
50 This defaults to using --debug. Read the script for more details. | |
51 | |
52 If you're trying to reproduce a run from the valgrind buildbot, look for the | |
53 `--run_chunk=XX:YY` line in the bot's log. You can rerun exactly as the bot did | |
54 with the commands. | |
55 | |
56 ```shell | |
57 cd ~/chromium/src | |
58 echo XX > valgrind_layout_chunk.txt | |
59 sh tools/valgrind/chrome_tests.sh -t layout -n YY | |
60 ``` | |
61 | |
62 That will run the XXth chunk of YY layout tests. | |
63 | |
64 ## Configuration tips | 43 ## Configuration tips |
65 | 44 |
66 * Use an optimized `content_shell` when rebaselining or running a lot of | 45 * Use an optimized `content_shell` when rebaselining or running a lot of |
67 tests. ([bug 8475](https://crbug.com/8475) is about how the debug output | 46 tests. ([bug 8475](https://crbug.com/8475) is about how the debug output |
68 differs from the optimized output.) | 47 differs from the optimized output.) |
69 | 48 |
70 `ninja -C out/Release content_shell` | 49 `ninja -C out/Release content_shell` |
71 | 50 |
72 * Make sure you have wdiff installed: `sudo apt-get install wdiff` to get | 51 * Make sure you have wdiff installed: `sudo apt-get install wdiff` to get |
73 prettier diff output. | 52 prettier diff output. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 In your `.xmonad/xmonad.hs`, change your config to include a manageHook along | 107 In your `.xmonad/xmonad.hs`, change your config to include a manageHook along |
129 these lines: | 108 these lines: |
130 | 109 |
131 ``` | 110 ``` |
132 test_shell_manage = className =? "Test_shell" --> doFloat | 111 test_shell_manage = className =? "Test_shell" --> doFloat |
133 main = xmonad $ | 112 main = xmonad $ |
134 defaultConfig | 113 defaultConfig |
135 { manageHook = test_shell_manage <+> manageHook defaultConfig | 114 { manageHook = test_shell_manage <+> manageHook defaultConfig |
136 ... | 115 ... |
137 ``` | 116 ``` |
OLD | NEW |