Commit 209eb337 authored by ishell's avatar ishell Committed by Commit bot

Parallelize test/mjsunit/es6/tail-call-megatest.js in order to avoid timeouts...

Parallelize test/mjsunit/es6/tail-call-megatest.js in order to avoid timeouts on slow architectures.

Review URL: https://codereview.chromium.org/1778663004

Cr-Commit-Position: refs/heads/master@{#34622}
parent 8e9c019b
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(0);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(1);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(2);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(3);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(4);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(5);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(6);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(7);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(8);
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-tailcalls
// TODO(v8:4698), TODO(ishell): support these cases.
// Flags: --turbo --nostress-opt
try {
load("mjsunit/es6/tail-call-megatest.js");
} catch(e) {
load("test/mjsunit/es6/tail-call-megatest.js");
}
run_tests(9);
...@@ -39,8 +39,9 @@ function ident_source(source, ident) { ...@@ -39,8 +39,9 @@ function ident_source(source, ident) {
return ident + source.replace(/\n/gi, "\n" + ident); return ident + source.replace(/\n/gi, "\n" + ident);
} }
var SHARDS_COUNT = 10;
function run_tests() { function run_tests(shard) {
function inlinable_comment(inlinable) { function inlinable_comment(inlinable) {
return inlinable ? CAN_INLINE_COMMENT : DONT_INLINE_COMMENT; return inlinable ? CAN_INLINE_COMMENT : DONT_INLINE_COMMENT;
} }
...@@ -325,6 +326,10 @@ function run_tests() { ...@@ -325,6 +326,10 @@ function run_tests() {
]; ];
var test_warmup_counts = [0, 1, 2]; var test_warmup_counts = [0, 1, 2];
var iter = 0;
if (shard !== undefined) {
print("Running shard #" + shard);
}
f_variants.forEach((f_cfg) => { f_variants.forEach((f_cfg) => {
g_variants.forEach((g_cfg) => { g_variants.forEach((g_cfg) => {
f_args_variants.forEach((f_args) => { f_args_variants.forEach((f_args) => {
...@@ -332,6 +337,10 @@ function run_tests() { ...@@ -332,6 +337,10 @@ function run_tests() {
f_inlinable_variants.forEach((f_inlinable) => { f_inlinable_variants.forEach((f_inlinable) => {
g_inlinable_variants.forEach((g_inlinable) => { g_inlinable_variants.forEach((g_inlinable) => {
test_warmup_counts.forEach((test_warmup_count) => { test_warmup_counts.forEach((test_warmup_count) => {
if (shard !== undefined && (iter++) % SHARDS_COUNT != shard) {
print("skipping...");
return;
}
var cfg = { var cfg = {
f_source_template: f_cfg.source_template, f_source_template: f_cfg.source_template,
f_inlinable, f_inlinable,
...@@ -356,4 +365,5 @@ function run_tests() { ...@@ -356,4 +365,5 @@ function run_tests() {
}); });
} }
run_tests(); // Uncomment to run all the tests at once or use shard runners.
//run_tests();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment