Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: test/mjsunit/es6/tail-call-megatest.js

Issue 1778663004: Parallelize test/mjsunit/es6/tail-call-megatest.js in order to avoid timeouts on slow architectures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/es6/tail-call-megatest-shard0.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/tail-call-megatest.js
diff --git a/test/mjsunit/es6/tail-call-megatest.js b/test/mjsunit/es6/tail-call-megatest.js
index 95474cf4589d700bf96dc5196b4e0c53078521d2..ea2cdd4aa4749dbd822848792224e87efc258f78 100644
--- a/test/mjsunit/es6/tail-call-megatest.js
+++ b/test/mjsunit/es6/tail-call-megatest.js
@@ -39,8 +39,9 @@ function ident_source(source, ident) {
return ident + source.replace(/\n/gi, "\n" + ident);
}
+var SHARDS_COUNT = 10;
-function run_tests() {
+function run_tests(shard) {
function inlinable_comment(inlinable) {
return inlinable ? CAN_INLINE_COMMENT : DONT_INLINE_COMMENT;
}
@@ -325,6 +326,10 @@ function run_tests() {
];
var test_warmup_counts = [0, 1, 2];
+ var iter = 0;
+ if (shard !== undefined) {
+ print("Running shard #" + shard);
+ }
f_variants.forEach((f_cfg) => {
g_variants.forEach((g_cfg) => {
f_args_variants.forEach((f_args) => {
@@ -332,6 +337,10 @@ function run_tests() {
f_inlinable_variants.forEach((f_inlinable) => {
g_inlinable_variants.forEach((g_inlinable) => {
test_warmup_counts.forEach((test_warmup_count) => {
+ if (shard !== undefined && (iter++) % SHARDS_COUNT != shard) {
+ print("skipping...");
+ return;
+ }
var cfg = {
f_source_template: f_cfg.source_template,
f_inlinable,
@@ -356,4 +365,5 @@ function run_tests() {
});
}
-run_tests();
+// Uncomment to run all the tests at once or use shard runners.
+//run_tests();
« no previous file with comments | « no previous file | test/mjsunit/es6/tail-call-megatest-shard0.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698