summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-11-07 11:03:32 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-11-07 11:03:32 -0800
commite5ccdb0ebf37d07f764f903d73abcfe1fec5436b (patch)
tree72bb35676caf52ffe03d67183af79fbf858f9456 /test/files/run
parente72c11e18062b4e281cc38fb7727b3bd144c8594 (diff)
parent490f946fc804358109098f0404e6483635e1d055 (diff)
downloadscala-e5ccdb0ebf37d07f764f903d73abcfe1fec5436b.tar.gz
scala-e5ccdb0ebf37d07f764f903d73abcfe1fec5436b.tar.bz2
scala-e5ccdb0ebf37d07f764f903d73abcfe1fec5436b.zip
Merge pull request #3042 from gourlaysama/t7634-repl-sh-is-broken
SI-7634 resurrect the REPL's :sh command
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t7634.check8
-rw-r--r--test/files/run/t7634.scala22
2 files changed, 30 insertions, 0 deletions
diff --git a/test/files/run/t7634.check b/test/files/run/t7634.check
new file mode 100644
index 0000000000..aea3b94da5
--- /dev/null
+++ b/test/files/run/t7634.check
@@ -0,0 +1,8 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+
+scala> .lines
+res1: List[String] = List(shello, world.)
+
+scala>
diff --git a/test/files/run/t7634.scala b/test/files/run/t7634.scala
new file mode 100644
index 0000000000..aeb6a5e671
--- /dev/null
+++ b/test/files/run/t7634.scala
@@ -0,0 +1,22 @@
+import java.io.File
+import scala.tools.partest.ReplTest
+import scala.util.Properties.propOrElse
+
+/**
+* filter out absolute path to java
+* filter: java
+*/
+object Test extends ReplTest {
+ def java = propOrElse("javacmd", "java")
+ def code = s""":sh $java -classpath $testOutput hello.Hello
+ |.lines""".stripMargin
+}
+
+package hello {
+ object Hello {
+ def main(a: Array[String]) {
+ System.out.println("shello, world.")
+ }
+ }
+}
+