Skip to content

Commit 512b065

Browse files
Merge pull request WebKit#127 from Constellation/list
Add --dump-test-list option
2 parents e803e0b + 0bb771c commit 512b065

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

JetStreamDriver.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,13 @@ class Driver {
526526
}
527527
}
528528

529+
dumpTestList()
530+
{
531+
for (const benchmark of this.benchmarks) {
532+
console.log(benchmark.name);
533+
}
534+
}
535+
529536
async reportScoreToRunBenchmarkRunner()
530537
{
531538
if (!isInBrowser)

cli.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ if ("--help" in cliFlags) {
8383
console.log(" --iteration-count: Set the default iteration count.");
8484
console.log(" --worst-case-count: Set the default worst-case count");
8585
console.log(" --dump-json-results: Print summary json to the console.");
86+
console.log(" --dump-test-list: Print test list instead of running.");
8687
console.log(" --ramification: Enable ramification support. See RAMification.py for more details.");
8788
console.log(" --no-prefetch: Do not prefetch resources. Will add network overhead to measurements!");
8889
console.log("");
@@ -97,6 +98,8 @@ if ("--help" in cliFlags) {
9798
const benchmarkNames = BENCHMARKS.map(b => b.name).sort();
9899
for (const benchmark of benchmarkNames)
99100
console.log(" ", benchmark);
101+
} else if ("--dump-test-list" in cliFlags) {
102+
JetStream.dumpTestList();
100103
} else {
101104
runJetStream();
102105
}

0 commit comments

Comments
 (0)