summaryrefslogtreecommitdiff
path: root/test/files/run/repl-out-dir.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-29 12:36:33 -0700
committerPaul Phillips <paulp@improving.org>2012-10-29 16:39:10 -0700
commit1841114e6cbb1ab4e3ad6abcd17b0bc9ebef0481 (patch)
tree95f80c7aa60dfe55ca03691d7bb5289254183a94 /test/files/run/repl-out-dir.scala
parentb480d991072e6e68ed46574d87e4483da778ff0e (diff)
downloadscala-1841114e6cbb1ab4e3ad6abcd17b0bc9ebef0481.tar.gz
scala-1841114e6cbb1ab4e3ad6abcd17b0bc9ebef0481.tar.bz2
scala-1841114e6cbb1ab4e3ad6abcd17b0bc9ebef0481.zip
An option for real repl output.
There have been many requests to expose the products of the repl in some way outside in-memory. This does that. scala # usual in-memory behavior scala -Yrepl-outdir "" # make up a temp dir scala -Yrepl-outdir /foo/bar # use /foo/bar
Diffstat (limited to 'test/files/run/repl-out-dir.scala')
-rw-r--r--test/files/run/repl-out-dir.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/repl-out-dir.scala b/test/files/run/repl-out-dir.scala
new file mode 100644
index 0000000000..33c823aa2d
--- /dev/null
+++ b/test/files/run/repl-out-dir.scala
@@ -0,0 +1,13 @@
+import scala.tools.partest.ReplTest
+import scala.tools.nsc.Settings
+
+object Test extends ReplTest {
+ override def extraSettings = s"-Yrepl-outdir ${testOutput.path}"
+
+ def code = s"""
+case class Bippy(x: Int)
+val x = Bippy(1)
+$$intp.showDirectory
+ """
+
+}