| 15 | |
| 16 | The platform directories are named based on a hyphenated-prefix system. For example, `mac-leopard` is a subset of `mac`. |
| 17 | |
| 18 | == Configuration == |
| 19 | Each platform configuration should define one variable, `$platformTestDirectory`, that specifies the most specific directory under `LayoutTests/platform/` that applies to that platform. For instance, on Mac OS X Leopard, `mac-leopard` should be specified. |
| 20 | |
| 21 | This name is broken into all possible hyphenated prefixes. For example, if a platform specifies `a-b-c` as its `$platformTestDirectory`, the directories in its ''platform hierarchy'' become (in order of most- to least-specific): |
| 22 | |
| 23 | * `a-b-c` |
| 24 | * `a-b` |
| 25 | * `a` |
| 26 | |
| 27 | == Finding Tests == |
| 28 | `run-webkit-tests` should search recursively through all the subdirectories of `LayoutTests/` to find test files, just as it does currently. However, it should '''not''' search recursively beneath `platform/`. It should then search through each of the directories in the platform hierarchy in order of least- to most-specific to find additional platform-specific tests to run. |