forked from mirrors/gecko-dev
After implementing vendoring in part 1, it's time to run it! This patch was broken out from part 1 to isolate very tedious portion of the review. Most of this patch is composed of: 1. Generated CTS test files from part 1. 2. A massive wall of test expectation management acknowledging current passes and failures. Currently, Linux and Windows are expected to pass with these noted failures. Many, but not all, current failures on MacOS are recorded. Differential Revision: https://phabricator.services.mozilla.com/D169953
19 lines
709 B
TypeScript
19 lines
709 B
TypeScript
import { DefaultTestFileLoader } from '../internal/file_loader.js';
|
|
import { parseQuery } from '../internal/query/parseQuery.js';
|
|
import { assert } from '../util/util.js';
|
|
|
|
void (async () => {
|
|
for (const suite of ['unittests', 'webgpu']) {
|
|
const loader = new DefaultTestFileLoader();
|
|
const filterQuery = parseQuery(`${suite}:*`);
|
|
const testcases = await loader.loadCases(filterQuery);
|
|
for (const testcase of testcases) {
|
|
const name = testcase.query.toString();
|
|
const maxLength = 375;
|
|
assert(
|
|
name.length <= maxLength,
|
|
`Testcase ${name} is too long. Max length is ${maxLength} characters. Please shorten names or reduce parameters.`
|
|
);
|
|
}
|
|
}
|
|
})();
|