File tree 3 files changed +10
-1
lines changed
compiler/test/dotty/tools/scripting
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 71
71
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
72
72
73
73
- name : Test
74
+ # DON'T add dist/pack!
75
+ # Adding dist/pack bootstraps the compiler
76
+ # which undermines the point of these tests:
77
+ # to quickly run the tests without the cost of bootstrapping
78
+ # and also to run tests when the compiler doesn't bootstrap
74
79
run : |
75
- ./project/scripts/sbt ";dist/pack; compile ;test"
80
+ ./project/scripts/sbt ";compile ;test"
76
81
./project/scripts/cmdTests
77
82
78
83
test :
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import scala.language.unsafeNulls
7
7
import java .nio .file .Paths
8
8
import org .junit .{Test , AfterClass }
9
9
import org .junit .Assert .assertEquals
10
+ import org .junit .experimental .categories .Category
10
11
11
12
import vulpix .TestConfiguration
12
13
@@ -156,6 +157,7 @@ class BashScriptsTests:
156
157
* verify that scriptPath.sc sees a valid script.path property,
157
158
* and that it's value is the path to "scriptPath.sc".
158
159
*/
160
+ @ Category (Array (classOf [BootstrappedOnlyTests ]))
159
161
@ Test def verifyScriptPathProperty =
160
162
val scriptFile = testFiles.find(_.getName == " scriptPath.sc" ).get
161
163
val expected = s " ${scriptFile.getName}"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import scala.language.unsafeNulls
7
7
import java .nio .file .Paths
8
8
import org .junit .{Test , AfterClass }
9
9
import org .junit .Assert .assertEquals
10
+ import org .junit .experimental .categories .Category
10
11
11
12
import vulpix .TestConfiguration
12
13
@@ -15,6 +16,7 @@ import ScriptTestEnv.*
15
16
/**
16
17
* +. test scala -e <expression>
17
18
*/
19
+ @ Category (Array (classOf [BootstrappedOnlyTests ]))
18
20
class ExpressionTest :
19
21
/*
20
22
* verify -e <expression> works.
You can’t perform that action at this time.
0 commit comments