Commit 3518226
committed
Execute tests/run/ tests with Scala.js.
We add support for skipping tests based on "toolArgs" flags,
written in the test sources as
// scalajs: --skip
The `ScalaJSCompilationTests` takes the `scalajs` toolArgs
into account, while the JVM `CompilationTests` do not. This
effectively means that tests marked as above are run only
on the JVM.
Good reasons for being skipped on Scala.js include:
* Using `.java` source files.
* Using Java reflection (sometimes to implement the testing
logic, more than what gets tested).
* Relying on `NullPointerException`s being thrown.
* Testing the precise result of `getClass()` of `classOf`,
which is not the same for `BoxedUnit` in Scala.js (these
cases are extensively tested in Scala.js' own test suite,
so they are well covered).
Some tests are skipped for less good reasons, for example:
* The `Course-*` tests are long, ancient tests that don't
test anything in particular, but rely a lot on the
precise printed form of Doubles.
Some tests rely on what Scala.js calls "compliant semantics".
They receive the flag `--compliant-semantics` to instruct the
Scala.js linker to enable them.
Many tests, due to the `println`-based nature of Vulpix,
rely on the precise printed form of `Double`s and `Unit`s.
When reasonably practical, these have been amended to pass
one way or another on Scala.js:
* using non-whole `Double`s, or
* explicitly trimming trailing `.0` from the string
representation of doubles, or
* explicitly converting `()` to `"()"`, or
* using other data types, or
* printing `Double`s instead of `Float`s, or
* avoiding to print irrelevant details.
Tests that are supposed to pass, but do not because of what
seems to be a bug, are marked
// scalajs: --skip --pending
so that we can grep for them later and try to fix them.1 parent 0632405 commit 3518226
File tree
339 files changed
+920
-224
lines changed- compiler/test/dotty/tools
- vulpix
- project
- sjs-compiler-tests/test/scala/dotty/tools/dotc
- tests/run
- 10838
- arrays-from-java
- backwardsCompat-implicitParens
- beans
- colltest5
- colltest6
- decorators
- enum-java
- forwarder-java-package-private
- i10884
- i11486
- i12086
- i12204
- i12753
- i2760
- i2780
- i4192
- i4947b
- i533
- i7212
- i7990
- i8001
- i8101
- i8531
- i8599
- i8602
- i8661
- java-annot-params
- java-intersection
- java-longnames
- java-no-scala-import
- java-varargs-2
- java-varargs-3
- java-varargs
- java-vc-overload
- junitForwarders
- mixin-forwarder-overload
- overload_repeated
- paramForwarding_separate
- repeatable
- splice-position
- static
- t10889
- t12300
- t3452a
- t3452b
- t3452d
- t3452e
- t3452g
- t4119
- t4238
- t4317
- t6138-2
- t6138
- t6168b
- t6168
- t7374
- t8601e
- t8905
- t9915
- targetName-interop
- targetName-modules-1
- targetName-modules-2
- trait-static-forwarder
- transparentPower
- varargs-abstract
- varargs-extend-java-2
- varargs-extend-java
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
339 files changed
+920
-224
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
199 | 202 | | |
200 | 203 | | |
201 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
354 | 362 | | |
355 | 363 | | |
356 | 364 | | |
| |||
739 | 747 | | |
740 | 748 | | |
741 | 749 | | |
742 | | - | |
| 750 | + | |
743 | 751 | | |
744 | 752 | | |
745 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1231 | 1236 | | |
1232 | 1237 | | |
1233 | 1238 | | |
| |||
Lines changed: 70 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
35 | 63 | | |
36 | 64 | | |
37 | 65 | | |
| |||
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
0 commit comments