Skip to content

Commit 6dcbdc2

Browse files
committed
Fix and add compilation test for dotty-bench
1 parent ba94db9 commit 6dcbdc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.drone.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ pipeline:
1414
commands:
1515
- cp -R . /tmp/1/ && cd /tmp/1/
1616
- ./project/scripts/sbt test
17+
- ./project/scripts/sbt ";dotty-bench/jmh:run 1 1 tests/run/arrays.scala"
1718

1819
test_bootstrapped:
1920
group: test
2021
image: lampepfl/dotty:2017-09-08
2122
commands:
2223
- cp -R . /tmp/2/ && cd /tmp/2/
2324
- ./project/scripts/sbt dotty-bootstrapped/test
25+
- ./project/scripts/sbt ";dotty-bench-bootstrapped/jmh:run 1 1 tests/run/arrays.scala"
2426

2527
test_optimised:
2628
group: test

bench/src/main/scala/Benchmarks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object Bench {
2525
val (intArgs, args1) = args.span(x => try { x.toInt; true } catch { case _: Throwable => false } )
2626

2727
val warmup = if (intArgs.length > 0) intArgs(0).toInt else 30
28-
val iteration warmup = if (intArgs.length > 1) intArgs(1).toInt else 20
28+
val iterations = if (intArgs.length > 1) intArgs(1).toInt else 20
2929

3030
val args2 = args1.map { arg =>
3131
if ((arg.endsWith(".scala") || arg.endsWith(".java")) && arg.head != '/') "../" + arg

0 commit comments

Comments
 (0)