File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
compiler/test/dotty/tools/scripting Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 6969 run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
7070
7171 - name : Test
72+ # DON'T add dist/pack!
73+ # Adding dist/pack bootstraps the compiler
74+ # which undermines the point of these tests:
75+ # to quickly run the tests without the cost of bootstrapping
76+ # and also to run tests when the compiler doesn't bootstrap
7277 run : |
73- ./project/scripts/sbt ";dist/pack; compile ;test"
78+ ./project/scripts/sbt ";compile ;test"
7479 ./project/scripts/cmdTests
7580
7681 test :
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import scala.language.unsafeNulls
77import java .nio .file .Paths
88import org .junit .{Test , AfterClass }
99import org .junit .Assert .assertEquals
10+ import org .junit .experimental .categories .Category
1011
1112import vulpix .TestConfiguration
1213
@@ -156,6 +157,7 @@ class BashScriptsTests:
156157 * verify that scriptPath.sc sees a valid script.path property,
157158 * and that it's value is the path to "scriptPath.sc".
158159 */
160+ @ Category (Array (classOf [BootstrappedOnlyTests ]))
159161 @ Test def verifyScriptPathProperty =
160162 val scriptFile = testFiles.find(_.getName == " scriptPath.sc" ).get
161163 val expected = s " ${scriptFile.getName}"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import scala.language.unsafeNulls
77import java .nio .file .Paths
88import org .junit .{Test , AfterClass }
99import org .junit .Assert .assertEquals
10+ import org .junit .experimental .categories .Category
1011
1112import vulpix .TestConfiguration
1213
@@ -15,6 +16,7 @@ import ScriptTestEnv.*
1516/**
1617 * +. test scala -e <expression>
1718 */
19+ @ Category (Array (classOf [BootstrappedOnlyTests ]))
1820class ExpressionTest :
1921 /*
2022 * verify -e <expression> works.
You can’t perform that action at this time.
0 commit comments