Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SI-7494 Tests for status quo

Exploit SI-6446 fix to move old pending tests for plugins to the
active pool.

Also, nuance the partest runner to allow the compiler to crash
with a FatalError if a check file is present.

Some of the plugin tests make phase assembly throw.

One of the legacy tests was moved back to pending:

There seems to be a race for who shall be deemed truly dependent.

Back to pending for you!

apm@mara:~/projects/snytt/test$ ./partest files/neg/t7494-cyclic-dependency/
Selected 1 tests drawn from specified tests

> starting 1 test in neg
ok 1 - neg/t7494-cyclic-dependency

1/1 passed (elapsed time: 00:00:04)
Test Run PASSED
apm@mara:~/projects/snytt/test$ ./partest files/neg/t7494-cyclic-dependency/
Selected 1 tests drawn from specified tests

> starting 1 test in neg
!! 1 - neg/t7494-cyclic-dependency               [output differs]
> 0/1 passed, 1 failed in neg

>>>>> Transcripts from failed tests >>>>>

> partest files/neg/t7494-cyclic-dependency
% scalac t7494-cyclic-dependency/ThePlugin.scala
% scalac t7494-cyclic-dependency/sample_2.scala
error: Cycle in compiler phase dependencies detected, phase cyclicdependency1 reacted twice!

% diff files/neg/t7494-cyclic-dependency-neg.log files/neg/t7494-cyclic-dependency.check
@@ -1 +1 @@
-error: Cycle in compiler phase dependencies detected, phase cyclicdependency1 reacted twice!
+error: Cycle in compiler phase dependencies detected, phase cyclicdependency2 reacted twice!

0/1 passed, 1 failed (elapsed time: 00:00:04)
Test Run FAILED
  • Loading branch information...
commit 4ab66d1613da276712692001ed8f9f3c009736ab 1 parent e0bd62c
@som-snytt som-snytt authored
Showing with 133 additions and 143 deletions.
  1. +4 −2 src/partest/scala/tools/partest/nest/Runner.scala
  2. 0  test/{pending/neg/plugin-after-terminal.check → files/neg/t7494-after-terminal.check}
  3. 0  test/{pending/neg/plugin-after-terminal/src → files/neg/t7494-after-terminal}/ThePlugin.scala
  4. +1 −0  test/files/neg/t7494-after-terminal/sample_2.flags
  5. +6 −0 test/files/neg/t7494-after-terminal/sample_2.scala
  6. +1 −1  test/{pending/neg/plugin-after-terminal/misc → files/neg/t7494-after-terminal}/scalac-plugin.xml
  7. 0  test/{pending/neg/plugin-before-parser.check → files/neg/t7494-before-parser.check}
  8. 0  test/{pending/neg/plugin-before-parser/src → files/neg/t7494-before-parser}/ThePlugin.scala
  9. +1 −0  test/files/neg/t7494-before-parser/sample_2.flags
  10. +6 −0 test/files/neg/t7494-before-parser/sample_2.scala
  11. 0  test/{pending/neg/plugin-rightafter-terminal/misc → files/neg/t7494-before-parser}/scalac-plugin.xml
  12. +1 −0  test/files/neg/t7494-cyclic-dependency.check
  13. +1 −2  test/{pending/neg/plugin-multiple-rafter.check → files/neg/t7494-multi-right-after.check}
  14. 0  test/{pending/neg/plugin-multiple-rafter/src → files/neg/t7494-multi-right-after}/ThePlugin.scala
  15. +1 −0  test/files/neg/t7494-multi-right-after/sample_2.flags
  16. +6 −0 test/files/neg/t7494-multi-right-after/sample_2.scala
  17. +1 −1  test/{pending/neg/plugin-before-parser/misc → files/neg/t7494-multi-right-after}/scalac-plugin.xml
  18. +33 −0 test/files/neg/t7494-no-options.check
  19. +31 −0 test/files/neg/t7494-no-options/ploogin_1.scala
  20. +1 −0  test/files/neg/t7494-no-options/sample_2.flags
  21. +6 −0 test/files/neg/t7494-no-options/sample_2.scala
  22. +4 −0 test/files/neg/t7494-no-options/scalac-plugin.xml
  23. +1 −0  test/files/neg/t7494-right-after-before.check
  24. 0  test/{pending/neg/plugin-rafter-before-1/src → files/neg/t7494-right-after-before}/ThePlugin.scala
  25. +1 −0  test/files/neg/t7494-right-after-before/sample_2.flags
  26. +6 −0 test/files/neg/t7494-right-after-before/sample_2.scala
  27. +1 −1  test/{pending/neg/plugin-cyclic-dependency/misc → files/neg/t7494-right-after-before}/scalac-plugin.xml
  28. 0  test/{pending/neg/plugin-rightafter-terminal.check → files/neg/t7494-right-after-terminal.check}
  29. 0  test/{pending/neg/plugin-rightafter-terminal/src → files/neg/t7494-right-after-terminal}/ThePlugin.scala
  30. +1 −0  test/files/neg/t7494-right-after-terminal/sample_2.flags
  31. +6 −0 test/files/neg/t7494-right-after-terminal/sample_2.scala
  32. +1 −1  test/{pending/neg/plugin-multiple-rafter/misc → files/neg/t7494-right-after-terminal}/scalac-plugin.xml
  33. +0 −2  test/pending/neg/plugin-after-terminal.flags
  34. +0 −1  test/pending/neg/plugin-after-terminal/lib/plugins.jar.desired.sha1
  35. +0 −14 test/pending/neg/plugin-after-terminal/misc/build.sh
  36. +0 −4 test/pending/neg/plugin-after-terminal/testsource.scala
  37. +0 −2  test/pending/neg/plugin-before-parser.flags
  38. +0 −1  test/pending/neg/plugin-before-parser/lib/plugins.jar.desired.sha1
  39. +0 −14 test/pending/neg/plugin-before-parser/misc/build.sh
  40. +0 −4 test/pending/neg/plugin-before-parser/testsource.scala
  41. +0 −2  test/pending/neg/plugin-cyclic-dependency.check
  42. +0 −2  test/pending/neg/plugin-cyclic-dependency.flags
  43. +0 −1  test/pending/neg/plugin-cyclic-dependency/lib/plugins.jar.desired.sha1
  44. +0 −14 test/pending/neg/plugin-cyclic-dependency/misc/build.sh
  45. +0 −4 test/pending/neg/plugin-cyclic-dependency/testsource.scala
  46. +0 −2  test/pending/neg/plugin-multiple-rafter.flags
  47. +0 −1  test/pending/neg/plugin-multiple-rafter/lib/plugins.jar.desired.sha1
  48. +0 −14 test/pending/neg/plugin-multiple-rafter/misc/build.sh
  49. +0 −4 test/pending/neg/plugin-multiple-rafter/testsource.scala
  50. +0 −2  test/pending/neg/plugin-rafter-before-1.check
  51. +0 −2  test/pending/neg/plugin-rafter-before-1.flags
  52. +0 −1  test/pending/neg/plugin-rafter-before-1/lib/plugins.jar.desired.sha1
  53. +0 −14 test/pending/neg/plugin-rafter-before-1/misc/build.sh
  54. +0 −5 test/pending/neg/plugin-rafter-before-1/misc/scalac-plugin.xml
  55. +0 −4 test/pending/neg/plugin-rafter-before-1/testsource.scala
  56. +0 −2  test/pending/neg/plugin-rightafter-terminal.flags
  57. +0 −1  test/pending/neg/plugin-rightafter-terminal/lib/plugins.jar.desired.sha1
  58. +0 −14 test/pending/neg/plugin-rightafter-terminal/misc/build.sh
  59. +0 −4 test/pending/neg/plugin-rightafter-terminal/testsource.scala
  60. 0  test/pending/neg/{plugin-cyclic-dependency/src → t7494-cyclic-dependency}/ThePlugin.scala
  61. +1 −0  test/pending/neg/t7494-cyclic-dependency/sample_2.flags
  62. +6 −0 test/pending/neg/t7494-cyclic-dependency/sample_2.scala
  63. +5 −0 test/pending/neg/t7494-cyclic-dependency/scalac-plugin.xml
View
6 src/partest/scala/tools/partest/nest/Runner.scala
@@ -13,6 +13,7 @@ import java.util.concurrent.TimeUnit.NANOSECONDS
import scala.collection.mutable.ListBuffer
import scala.concurrent.duration.Duration
import scala.io.Codec
+import scala.reflect.internal.FatalError
import scala.sys.process.Process
import scala.tools.nsc.Properties.{ envOrElse, isWin, jdkHome, javaHome, propOrElse, propOrEmpty, setProp }
import scala.tools.nsc.{ Settings, CompilerCommand, Global }
@@ -451,9 +452,10 @@ class Runner(val testFile: File, fileManager: FileManager, val testRunParams: Te
val failing = rounds find (x => nextTestActionExpectTrue("compilation failed", x.isOk) == false)
// which means passing if it checks and didn't crash the compiler
+ // or, OK, we'll let you crash the compiler with a FatalError if you supply a check file
def checked(r: CompileRound) = r.result match {
- case f: Crash => false
- case f => normalizeLog(); diffIsOk
+ case Crash(_, t, _) if !checkFile.canRead || !t.isInstanceOf[FatalError] => false
+ case _ => normalizeLog(); diffIsOk
}
failing map (checked) getOrElse nextTestActionFailing("expected compilation failure")
View
0  test/pending/neg/plugin-after-terminal.check → test/files/neg/t7494-after-terminal.check
File renamed without changes
View
0  ...plugin-after-terminal/src/ThePlugin.scala → .../neg/t7494-after-terminal/ThePlugin.scala
File renamed without changes
View
1  test/files/neg/t7494-after-terminal/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xplugin-require:afterterminal
View
6 test/files/neg/t7494-after-terminal/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
2  ...gin-after-terminal/misc/scalac-plugin.xml → ...eg/t7494-after-terminal/scalac-plugin.xml
@@ -1,5 +1,5 @@
<plugin>
- <name>beforeparser</name>
+ <name>ignored</name>
<classname>scala.test.plugins.ThePlugin</classname>
</plugin>
View
0  test/pending/neg/plugin-before-parser.check → test/files/neg/t7494-before-parser.check
File renamed without changes
View
0  .../plugin-before-parser/src/ThePlugin.scala → ...s/neg/t7494-before-parser/ThePlugin.scala
File renamed without changes
View
1  test/files/neg/t7494-before-parser/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xplugin-require:beforeparser
View
6 test/files/neg/t7494-before-parser/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
0  ...ightafter-terminal/misc/scalac-plugin.xml → ...neg/t7494-before-parser/scalac-plugin.xml
File renamed without changes
View
1  test/files/neg/t7494-cyclic-dependency.check
@@ -0,0 +1 @@
+error: Cycle in compiler phase dependencies detected, phase cyclicdependency2 reacted twice!
View
3  .../pending/neg/plugin-multiple-rafter.check → test/files/neg/t7494-multi-right-after.check
@@ -1,4 +1,3 @@
-error: fatal error: Multiple phases want to run right after the phase explicitouter
+error: Multiple phases want to run right after the phase explicitouter
Phases: erasure, multi-rafter,
Re-run with -Xgenerate-phase-graph <filename> to better see the problem.
-one error found
View
0  ...lugin-multiple-rafter/src/ThePlugin.scala → ...g/t7494-multi-right-after/ThePlugin.scala
File renamed without changes
View
1  test/files/neg/t7494-multi-right-after/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xplugin-require:multi-rafter
View
6 test/files/neg/t7494-multi-right-after/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
2  ...ugin-before-parser/misc/scalac-plugin.xml → ...t7494-multi-right-after/scalac-plugin.xml
@@ -1,5 +1,5 @@
<plugin>
- <name>beforeparser</name>
+ <name>ignored</name>
<classname>scala.test.plugins.ThePlugin</classname>
</plugin>
View
33 test/files/neg/t7494-no-options.check
@@ -0,0 +1,33 @@
+error: Error: ploogin has no options
+ phase name id description
+ ---------- -- -----------
+ parser 1 parse source into ASTs, perform simple desugaring
+ namer 2 resolve names, attach symbols to named trees
+packageobjects 3 load package objects
+ typer 4 the meat and potatoes: type the trees
+ patmat 5 translate match expressions
+superaccessors 6 add super accessors in traits and nested classes
+ extmethods 7 add extension methods for inline classes
+ pickler 8 serialize symbol tables
+ refchecks 9 reference/override checking, translate nested objects
+ uncurry 10 uncurry, translate function values to anonymous classes
+ tailcalls 11 replace tail calls by jumps
+ specialize 12 @specialized-driven class and method specialization
+ explicitouter 13 this refs to outer pointers, translate patterns
+ erasure 14 erase types, add interfaces for traits
+ posterasure 15 clean up erased inline classes
+ lazyvals 16 allocate bitmaps, translate lazy vals into lazified defs
+ lambdalift 17 move nested functions to top level
+ constructors 18 move field definitions into constructors
+ flatten 19 eliminate inner classes
+ mixin 20 mixin composition
+ cleanup 21 platform-specific cleanups, generate reflective calls
+ icode 22 generate portable intermediate code
+ inliner 23 optimization: do inlining
+inlinehandlers 24 optimization: inline exception handlers
+ closelim 25 optimization: eliminate uncalled closures
+ constopt 26 optimization: optimize null and other constants
+ dce 27 optimization: eliminate dead code
+ jvm 28 generate JVM bytecode
+ ploogin 29 A sample phase that does so many things it's kind of hard...
+ terminal 30 The last phase in the compiler chain
View
31 test/files/neg/t7494-no-options/ploogin_1.scala
@@ -0,0 +1,31 @@
+
+package t6446
+
+import scala.tools.nsc.{ Global, Phase }
+import scala.tools.nsc.plugins.{ Plugin, PluginComponent }
+import scala.reflect.io.Path
+import scala.reflect.io.File
+
+/** A test plugin. */
+class Ploogin(val global: Global) extends Plugin {
+ import global._
+
+ val name = "ploogin"
+ val description = "A sample plugin for testing."
+ val components = List[PluginComponent](TestComponent)
+
+ private object TestComponent extends PluginComponent {
+ val global: Ploogin.this.global.type = Ploogin.this.global
+ //override val runsBefore = List("refchecks")
+ val runsAfter = List("jvm")
+ val phaseName = Ploogin.this.name
+ override def description = "A sample phase that does so many things it's kind of hard to describe briefly."
+ def newPhase(prev: Phase) = new TestPhase(prev)
+ class TestPhase(prev: Phase) extends StdPhase(prev) {
+ override def description = TestComponent.this.description
+ def apply(unit: CompilationUnit) {
+ // kewl kode
+ }
+ }
+ }
+}
View
1  test/files/neg/t7494-no-options/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xshow-phases -P:ploogin:inploog
View
6 test/files/neg/t7494-no-options/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
4 test/files/neg/t7494-no-options/scalac-plugin.xml
@@ -0,0 +1,4 @@
+<plugin>
+<name>sample-plugin</name>
+<classname>t6446.Ploogin</classname>
+</plugin>
View
1  test/files/neg/t7494-right-after-before.check
@@ -0,0 +1 @@
+error: phase erasure want to run right after explicitouter, but some phase has declared to run before erasure. Re-run with -Xgenerate-phase-graph <filename> to better see the problem.
View
0  ...lugin-rafter-before-1/src/ThePlugin.scala → .../t7494-right-after-before/ThePlugin.scala
File renamed without changes
View
1  test/files/neg/t7494-right-after-before/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xplugin-require:rafter-before-1
View
6 test/files/neg/t7494-right-after-before/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
2  ...-cyclic-dependency/misc/scalac-plugin.xml → ...7494-right-after-before/scalac-plugin.xml
@@ -1,5 +1,5 @@
<plugin>
- <name>beforeparser</name>
+ <name>ignored</name>
<classname>scala.test.plugins.ThePlugin</classname>
</plugin>
View
0  ...ding/neg/plugin-rightafter-terminal.check → ...iles/neg/t7494-right-after-terminal.check
File renamed without changes
View
0  ...n-rightafter-terminal/src/ThePlugin.scala → ...7494-right-after-terminal/ThePlugin.scala
File renamed without changes
View
1  test/files/neg/t7494-right-after-terminal/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xplugin-require:rightafterterminal
View
6 test/files/neg/t7494-right-after-terminal/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
2  ...in-multiple-rafter/misc/scalac-plugin.xml → ...94-right-after-terminal/scalac-plugin.xml
@@ -1,5 +1,5 @@
<plugin>
- <name>beforeparser</name>
+ <name>ignored</name>
<classname>scala.test.plugins.ThePlugin</classname>
</plugin>
View
2  test/pending/neg/plugin-after-terminal.flags
@@ -1,2 +0,0 @@
--Xplugin:files/neg/plugin-after-terminal/lib/plugins.jar
-
View
1  test/pending/neg/plugin-after-terminal/lib/plugins.jar.desired.sha1
@@ -1 +0,0 @@
-f174c50c4363c492362a05c72dd45b0da18fdcd8 ?plugins.jar
View
14 test/pending/neg/plugin-after-terminal/misc/build.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-SCALAC="../../../../build/pack/bin/scalac -deprecation -cp ../../../../build/quick/classes/compiler/"
-
-BASE=`pwd`
-
-if [[ -d "${BASE}/src" ]] ; then
-
- mkdir -p build
- ${SCALAC} -d build src/*.scala
- jar cf lib/plugins.jar -C misc/ scalac-plugin.xml -C build .
- rm -rf build
-fi
-
View
4 test/pending/neg/plugin-after-terminal/testsource.scala
@@ -1,4 +0,0 @@
-object Test extends Application {
- println("afterterminal")
-}
-
View
2  test/pending/neg/plugin-before-parser.flags
@@ -1,2 +0,0 @@
--Xplugin:files/neg/plugin-before-parser/lib/plugins.jar
-
View
1  test/pending/neg/plugin-before-parser/lib/plugins.jar.desired.sha1
@@ -1 +0,0 @@
-d7b100ad483484b598b7cd643424bd2e33898a0d ?plugins.jar
View
14 test/pending/neg/plugin-before-parser/misc/build.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-SCALAC="../../../../build/pack/bin/scalac -deprecation -cp ../../../../build/quick/classes/compiler/"
-
-BASE=`pwd`
-
-if [[ -d "${BASE}/src" ]] ; then
-
- mkdir -p build
- ${SCALAC} -d build src/*.scala
- jar cf lib/plugins.jar -C misc/ scalac-plugin.xml -C build .
- rm -rf build
-fi
-
View
4 test/pending/neg/plugin-before-parser/testsource.scala
@@ -1,4 +0,0 @@
-object Test extends Application {
- println("beforeparser")
-}
-
View
2  test/pending/neg/plugin-cyclic-dependency.check
@@ -1,2 +0,0 @@
-error: fatal error: Cycle in compiler phase dependencies detected, phase cyclicdependency1 reacted twice!
-one error found
View
2  test/pending/neg/plugin-cyclic-dependency.flags
@@ -1,2 +0,0 @@
--Xplugin:files/neg/plugin-cyclic-dependency/lib/plugins.jar
-
View
1  test/pending/neg/plugin-cyclic-dependency/lib/plugins.jar.desired.sha1
@@ -1 +0,0 @@
-7e6be9e33a87194e7061f94f6be115619f91ada2 ?plugins.jar
View
14 test/pending/neg/plugin-cyclic-dependency/misc/build.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-SCALAC="../../../../build/pack/bin/scalac -deprecation -cp ../../../../build/quick/classes/compiler/"
-
-BASE=`pwd`
-
-if [[ -d "${BASE}/src" ]] ; then
-
- mkdir -p build
- ${SCALAC} -d build src/*.scala
- jar cf lib/plugins.jar -C misc/ scalac-plugin.xml -C build .
- rm -rf build
-fi
-
View
4 test/pending/neg/plugin-cyclic-dependency/testsource.scala
@@ -1,4 +0,0 @@
-object Test extends Application {
- println("cyclicdependency")
-}
-
View
2  test/pending/neg/plugin-multiple-rafter.flags
@@ -1,2 +0,0 @@
--Xplugin:files/neg/plugin-multiple-rafter/lib/plugins.jar
-
View
1  test/pending/neg/plugin-multiple-rafter/lib/plugins.jar.desired.sha1
@@ -1 +0,0 @@
-2bda582b574287429ad5ee2e1d9a3effc88b0a5f ?plugins.jar
View
14 test/pending/neg/plugin-multiple-rafter/misc/build.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-SCALAC="../../../../build/pack/bin/scalac -deprecation -cp ../../../../build/quick/classes/compiler/"
-
-BASE=`pwd`
-
-if [[ -d "${BASE}/src" ]] ; then
-
- mkdir -p build
- ${SCALAC} -d build src/*.scala
- jar cf lib/plugins.jar -C misc/ scalac-plugin.xml -C build .
- rm -rf build
-fi
-
View
4 test/pending/neg/plugin-multiple-rafter/testsource.scala
@@ -1,4 +0,0 @@
-object Test extends Application {
- println("multi-rafter")
-}
-
View
2  test/pending/neg/plugin-rafter-before-1.check
@@ -1,2 +0,0 @@
-error: fatal error: phase erasure want to run right after explicitouter, but some phase has declared to run before erasure. Re-run with -Xgenerate-phase-graph <filename> to better see the problem.
-one error found
View
2  test/pending/neg/plugin-rafter-before-1.flags
@@ -1,2 +0,0 @@
--Xplugin:files/neg/plugin-rafter-before-1/lib/plugins.jar
-
View
1  test/pending/neg/plugin-rafter-before-1/lib/plugins.jar.desired.sha1
@@ -1 +0,0 @@
-af91fd67ccef349e7f8ea662615e17796a339485 ?plugins.jar
View
14 test/pending/neg/plugin-rafter-before-1/misc/build.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-SCALAC="../../../../build/pack/bin/scalac -deprecation -cp ../../../../build/quick/classes/compiler/"
-
-BASE=`pwd`
-
-if [[ -d "${BASE}/src" ]] ; then
-
- mkdir -p build
- ${SCALAC} -d build src/*.scala
- jar cf lib/plugins.jar -C misc/ scalac-plugin.xml -C build .
- rm -rf build
-fi
-
View
5 test/pending/neg/plugin-rafter-before-1/misc/scalac-plugin.xml
@@ -1,5 +0,0 @@
-<plugin>
- <name>beforeparser</name>
- <classname>scala.test.plugins.ThePlugin</classname>
-</plugin>
-
View
4 test/pending/neg/plugin-rafter-before-1/testsource.scala
@@ -1,4 +0,0 @@
-object Test extends Application {
- println("rafter-before-1")
-}
-
View
2  test/pending/neg/plugin-rightafter-terminal.flags
@@ -1,2 +0,0 @@
--Xplugin:files/neg/plugin-rightafter-terminal/lib/plugins.jar
-
View
1  test/pending/neg/plugin-rightafter-terminal/lib/plugins.jar.desired.sha1
@@ -1 +0,0 @@
-8cccde4914da2058dca893783c231cda23855603 ?plugins.jar
View
14 test/pending/neg/plugin-rightafter-terminal/misc/build.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-SCALAC="../../../../build/pack/bin/scalac -deprecation -cp ../../../../build/quick/classes/compiler/"
-
-BASE=`pwd`
-
-if [[ -d "${BASE}/src" ]] ; then
-
- mkdir -p build
- ${SCALAC} -d build src/*.scala
- jar cf lib/plugins.jar -C misc/ scalac-plugin.xml -C build .
- rm -rf build
-fi
-
View
4 test/pending/neg/plugin-rightafter-terminal/testsource.scala
@@ -1,4 +0,0 @@
-object Test extends Application {
- println("rightafterterminal")
-}
-
View
0  ...gin-cyclic-dependency/src/ThePlugin.scala → ...g/t7494-cyclic-dependency/ThePlugin.scala
File renamed without changes
View
1  test/pending/neg/t7494-cyclic-dependency/sample_2.flags
@@ -0,0 +1 @@
+-Xplugin:. -Xplugin-require:cyclicdependency
View
6 test/pending/neg/t7494-cyclic-dependency/sample_2.scala
@@ -0,0 +1,6 @@
+
+package sample
+
+// just a sample that is compiled with the sample plugin enabled
+object Sample extends App {
+}
View
5 test/pending/neg/t7494-cyclic-dependency/scalac-plugin.xml
@@ -0,0 +1,5 @@
+<plugin>
+ <name>ignored</name>
+ <classname>scala.test.plugins.ThePlugin</classname>
+</plugin>
+
Please sign in to comment.
Something went wrong with that request. Please try again.