Don't [try] to run non-tests

Currently, we treat every .html file in tests/wpt as-if it's a test. That
isn't always the case. wpt has a manifest tool to generate a manifest (in
JSON) of the tests, we should probably use that (but it's quite large).

This PR filters out two groups. First, everything in resources/ appears to
be things to _run_ the tests, not actual tests.

Second, any file without a "testharness.js" doesn't appear to be a test
either. Note that WPT's own manifest generator looks at this:
43a0615361/tools/manifest/sourcefile.py (L676)
(which is used later in the file to determine the type of file).
This commit is contained in:
Karl Seguin
2025-04-22 21:05:12 +08:00
parent f3d8ec040c
commit 8aa3608a3c
2 changed files with 19 additions and 3 deletions

View File

@@ -148,6 +148,10 @@ pub fn main() !void {
}
failures += 1;
continue;
} orelse {
// This test should _not_ have been run.
run -= 1;
continue;
};
const suite = try Suite.init(alloc, tc, true, res);