Chromium Code Reviews| 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; |
|
Michael Starzinger
2016/03/09 13:37:05
suggestion: Instead of hard-coding the shard-count
Igor Sheludko
2016/03/09 13:43:12
On the other hand the addition of new shards will
|
| -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(); |