Skip to content

Commit de4b076

Browse files
committed
Test --cross with the compile sub-command
1 parent 47879c6 commit de4b076

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package scala.cli.integration
22

33
class CompileTestsDefault extends CompileTestDefinitions with CompileTests3StableDefinitions
4-
with TestDefault
4+
with TestDefault {
5+
test(
6+
s"compile --cross $actualScalaVersion with ${Constants.scala213} and ${Constants.scala212}"
7+
) {
8+
val crossVersions = Seq(actualScalaVersion, Constants.scala213, Constants.scala212)
9+
simpleInputs
10+
.add(os.rel / "project.scala" -> s"//> using scala ${crossVersions.mkString(" ")}")
11+
.fromRoot { root =>
12+
os.proc(TestUtil.cli, "compile", ".", "--cross", "--power", extraOptions).call(cwd = root)
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)