@@ -1008,6 +1008,9 @@ object Build {
10081008 )
10091009 }.taskValue,
10101010
1011+ scalaJSLinkerConfig ~= { _.withSemantics(build.TestSuiteLinkerOptions .semantics _) },
1012+ scalaJSModuleInitializers in Test ++= build.TestSuiteLinkerOptions .moduleInitializers,
1013+
10111014 managedSources in Compile ++= {
10121015 val dir = fetchScalaJSSource.value / " test-suite/js/src/main/scala"
10131016 val filter = (
@@ -1063,6 +1066,83 @@ object Build {
10631066 ++ (dir / " shared/src/test/require-jdk7/org/scalajs/testsuite/javalib/io" ** " *.scala" ).get
10641067 ++ (dir / " shared/src/test/require-jdk7/org/scalajs/testsuite/javalib/lang" ** " *.scala" ).get
10651068 ++ (dir / " shared/src/test/require-jdk7/org/scalajs/testsuite/javalib/util" ** " *.scala" ).get
1069+
1070+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/compiler" ** ((" *.scala" : FileFilter )
1071+ -- " InteroperabilityTest.scala" // various compile errors
1072+ -- " OptimizerTest.scala" // compile errors: false + string and () + string
1073+ -- " ReflectionTest.scala" // tests fail
1074+ -- " RegressionJSTest.scala" // compile error with js.Dynamic.literal
1075+ -- " RuntimeTypesTest.scala" // compile errors: no ClassTag for Null and Nothing
1076+ )).get
1077+
1078+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/javalib" ** ((" *.scala" : FileFilter )
1079+ -- " FormatterJSTest.scala" // compile error with the f"" interpolator
1080+ -- " ObjectJSTest.scala" // non-native JS classes
1081+ -- " StringBufferJSTest.scala" // IR checking errors
1082+ -- " ThrowableJSTest.scala" // test fails ("java.lang.Error: stub")
1083+ )).get
1084+
1085+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/jsinterop" ** ((" *.scala" : FileFilter )
1086+ -- " AsyncTest.scala" // needs PromiseMock.scala
1087+ -- " DynamicTest.scala" // compile error with js.Dynamic.literal
1088+ -- " ExportsTest.scala" // JS exports
1089+ -- " FunctionTest.scala" // IR checking errors
1090+ -- " IterableTest.scala" // non-native JS classes
1091+ -- " JSExportStaticTest.scala" // JS exports
1092+ -- " JSNameTest.scala" // compile error with js.Dynamic.literal
1093+ -- " JSNativeInPackage.scala" // IR checking errors
1094+ -- " JSOptionalTest.scala" // non-native JS classes
1095+ -- " JSSymbolTest.scala" // compile error with js.Dynamic.literal
1096+ -- " MiscInteropTest.scala" // compile error with js.Dynamic.literal
1097+ -- " ModulesWithGlobalFallbackTest.scala" // non-native JS classes
1098+ -- " NestedJSClassTest.scala" // non-native JS classes
1099+ -- " NonNativeJSTypeTest.scala" // non-native JS classes
1100+ -- " PromiseMock.scala" // non-native JS classes
1101+ -- " SpecialTest.scala" // compile error with js.Dynamic.literal
1102+ -- " SymbolTest.scala" // IR checking errors
1103+ -- " ThisFunctionTest.scala" // compile error with js.Dynamic.literal
1104+ -- " UndefOrTest.scala" // StackOverflow in the compiler
1105+ )).get
1106+
1107+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/junit" ** ((" *.scala" : FileFilter )
1108+ // Tests fail
1109+ -- " JUnitAbstractClassTest.scala"
1110+ -- " JUnitNamesTest.scala"
1111+ -- " JUnitSubClassTest.scala"
1112+ -- " MultiCompilationSecondUnitTest.scala"
1113+ )).get
1114+
1115+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/library" ** ((" *.scala" : FileFilter )
1116+ -- " BigIntTest.scala" // StackOverflow in the compiler
1117+ -- " ObjectTest.scala" // compile errors
1118+ -- " StackTraceTest.scala" // would require `npm install source-map-support`
1119+ -- " UnionTypeTest.scala" // requires a Scala 2 macro + StackOverflow in the compiler
1120+ -- " WrappedDictionaryTest.scala" // IR checking errors
1121+ )).get
1122+
1123+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/niobuffer" ** " *.scala" ).get
1124+
1125+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/scalalib" ** ((" *.scala" : FileFilter )
1126+ -- " ScalaRunTimeJSTest.scala" // compile error with js.Dynamic.literal
1127+ )).get
1128+
1129+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/typedarray" ** ((" *.scala" : FileFilter )
1130+ -- " TypedArrayTest.scala" // assertion error in ExpandSAMs
1131+ )).get
1132+
1133+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/utils" ** " *.scala" ).get
1134+
1135+ ++ (dir / " js/src/test/require-2.12" ** ((" *.scala" : FileFilter )
1136+ -- " JSOptionalTest212.scala" // non-native JS classes
1137+ )).get
1138+
1139+ ++ (dir / " js/src/test/require-sam" ** ((" *.scala" : FileFilter )
1140+ -- " SAMJSTest.scala" // non-native JS classes
1141+ )).get
1142+
1143+ ++ (dir / " js/src/test/scala-new-collections" ** ((" *.scala" : FileFilter )
1144+ -- " WrappedDictionaryToTest.scala" // IR checking errors
1145+ )).get
10661146 )
10671147 }
10681148 )
0 commit comments