summaryrefslogtreecommitdiff
path: root/test/attic/files/cli/test2
diff options
context:
space:
mode:
Diffstat (limited to 'test/attic/files/cli/test2')
-rw-r--r--test/attic/files/cli/test2/Main.check.j9vm54
-rw-r--r--test/attic/files/cli/test2/Main.check.java6
-rw-r--r--test/attic/files/cli/test2/Main.check.java56
-rw-r--r--test/attic/files/cli/test2/Main.check.java5_api24
-rw-r--r--test/attic/files/cli/test2/Main.check.java5_j936
-rw-r--r--test/attic/files/cli/test2/Main.check.javac27
-rw-r--r--test/attic/files/cli/test2/Main.check.javac528
-rw-r--r--test/attic/files/cli/test2/Main.check.javac633
-rw-r--r--test/attic/files/cli/test2/Main.check.jikes9
-rw-r--r--test/attic/files/cli/test2/Main.check.jikes59
-rw-r--r--test/attic/files/cli/test2/Main.check.scala24
-rw-r--r--test/attic/files/cli/test2/Main.check.scala_api37
-rw-r--r--test/attic/files/cli/test2/Main.check.scala_j915
-rw-r--r--test/attic/files/cli/test2/Main.check.scalac63
-rw-r--r--test/attic/files/cli/test2/Main.check.scalaint45
-rw-r--r--test/attic/files/cli/test2/Main.java8
-rw-r--r--test/attic/files/cli/test2/Main.scala8
17 files changed, 382 insertions, 0 deletions
diff --git a/test/attic/files/cli/test2/Main.check.j9vm5 b/test/attic/files/cli/test2/Main.check.j9vm5
new file mode 100644
index 0000000000..8f4fdf8aa1
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.j9vm5
@@ -0,0 +1,4 @@
+env: -cpp: No such file or directory
+env: test2.Main: No such file or directory
+env: -cp: No such file or directory
+2: 1: test 3 passed
diff --git a/test/attic/files/cli/test2/Main.check.java b/test/attic/files/cli/test2/Main.check.java
new file mode 100644
index 0000000000..aca383de3e
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.java
@@ -0,0 +1,6 @@
+Unrecognized option: -cpp
+Could not create the Java virtual machine.
+2: 1: test 1 passed (1)
+2: 1: test 2 passed (1)
+2: 1: test 3 passed (1)
+2: 1: test 4 passed (2)
diff --git a/test/attic/files/cli/test2/Main.check.java5 b/test/attic/files/cli/test2/Main.check.java5
new file mode 100644
index 0000000000..aca383de3e
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.java5
@@ -0,0 +1,6 @@
+Unrecognized option: -cpp
+Could not create the Java virtual machine.
+2: 1: test 1 passed (1)
+2: 1: test 2 passed (1)
+2: 1: test 3 passed (1)
+2: 1: test 4 passed (2)
diff --git a/test/attic/files/cli/test2/Main.check.java5_api b/test/attic/files/cli/test2/Main.check.java5_api
new file mode 100644
index 0000000000..4ff775c3da
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.java5_api
@@ -0,0 +1,24 @@
+|-- allclasses-frame.html
+|-- allclasses-noframe.html
+|-- constant-values.html
+|-- deprecated-list.html
+|-- help-doc.html
+|-- index-all.html
+|-- index.html
+|-- overview-tree.html
+|-- package-list
+|-- resources
+| `-- inherit.gif
+|-- stylesheet.css
+|-- test1
+| |-- Main.html
+| |-- package-frame.html
+| |-- package-summary.html
+| `-- package-tree.html
+`-- test2
+ |-- Main.html
+ |-- package-frame.html
+ |-- package-summary.html
+ `-- package-tree.html
+
+3 directories, 19 files
diff --git a/test/attic/files/cli/test2/Main.check.java5_j9 b/test/attic/files/cli/test2/Main.check.java5_j9
new file mode 100644
index 0000000000..2dcb6e892a
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.java5_j9
@@ -0,0 +1,36 @@
+JVMJ9VM007E Command-line option unrecognised: -cpp
+Could not create the Java virtual machine.
+
+Usage: java [-options] class [args...]
+ (to execute a class)
+ or java [-jar] [-options] jarfile [args...]
+ (to execute a jar file)
+
+where options include:
+ -cp -classpath <directories and zip/jar files separated by :>
+ set search path for application classes and resources
+ -D<name>=<value>
+ set a system property
+ -verbose[:class|gc|jni]
+ enable verbose output
+ -version print product version
+ -version:<value>
+ require the specified version to run
+ -showversion print product version and continue
+ -jre-restrict-search | -no-jre-restrict-search
+ include/exclude user private JREs in the version search
+ -agentlib:<libname>[=<options>]
+ load native agent library <libname>, e.g. -agentlib:hprof
+ see also, -agentlib:jdwp=help and -agentlib:hprof=help
+ -agentpath:<pathname>[=<options>]
+ load native agent library by full pathname
+ -javaagent:<jarpath>[=<options>]
+ load Java programming language agent, see java.lang.instrument
+ -? -help print this help message
+ -X print help on non-standard options
+ -assert print help on assert options
+
+The java class is not found: test2.Main
+The java class is not found: test2.Main
+The java class is not found: test2.Main
+The java class is not found: test2.Main
diff --git a/test/attic/files/cli/test2/Main.check.javac b/test/attic/files/cli/test2/Main.check.javac
new file mode 100644
index 0000000000..c40c0a7a89
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.javac
@@ -0,0 +1,27 @@
+javac: invalid flag: -dd
+Usage: javac <options> <source files>
+where possible options include:
+ -g Generate all debugging info
+ -g:none Generate no debugging info
+ -g:{lines,vars,source} Generate only some debugging info
+ -nowarn Generate no warnings
+ -verbose Output messages about what the compiler is doing
+ -deprecation Output source locations where deprecated APIs are used
+ -classpath <path> Specify where to find user class files
+ -sourcepath <path> Specify where to find input source files
+ -bootclasspath <path> Override location of bootstrap class files
+ -extdirs <dirs> Override location of installed extensions
+ -d <directory> Specify where to place generated class files
+ -encoding <encoding> Specify character encoding used by source files
+ -source <release> Provide source compatibility with specified release
+ -target <release> Generate class files for specific VM version
+ -help Print a synopsis of standard options
+
+files/cli/test2/Main.java:6: package test1 does not exist
+ test1.Main.main(args);
+ ^
+1 error
+files/cli/test2/Main.java:6: package test1 does not exist
+ test1.Main.main(args);
+ ^
+1 error
diff --git a/test/attic/files/cli/test2/Main.check.javac5 b/test/attic/files/cli/test2/Main.check.javac5
new file mode 100644
index 0000000000..0ac32b056e
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.javac5
@@ -0,0 +1,28 @@
+javac: invalid flag: -dd
+Usage: javac <options> <source files>
+where possible options include:
+ -g Generate all debugging info
+ -g:none Generate no debugging info
+ -g:{lines,vars,source} Generate only some debugging info
+ -nowarn Generate no warnings
+ -verbose Output messages about what the compiler is doing
+ -deprecation Output source locations where deprecated APIs are used
+ -classpath <path> Specify where to find user class files
+ -cp <path> Specify where to find user class files
+ -sourcepath <path> Specify where to find input source files
+ -bootclasspath <path> Override location of bootstrap class files
+ -extdirs <dirs> Override location of installed extensions
+ -endorseddirs <dirs> Override location of endorsed standards path
+ -d <directory> Specify where to place generated class files
+ -encoding <encoding> Specify character encoding used by source files
+ -source <release> Provide source compatibility with specified release
+ -target <release> Generate class files for specific VM version
+ -version Version information
+ -help Print a synopsis of standard options
+ -X Print a synopsis of nonstandard options
+ -J<flag> Pass <flag> directly to the runtime system
+
+files/cli/test2/Main.java:6: package test1 does not exist
+ test1.Main.main(args);
+ ^
+1 error
diff --git a/test/attic/files/cli/test2/Main.check.javac6 b/test/attic/files/cli/test2/Main.check.javac6
new file mode 100644
index 0000000000..350d3253bc
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.javac6
@@ -0,0 +1,33 @@
+javac: invalid flag: -dd
+Usage: javac <options> <source files>
+where possible options include:
+ -g Generate all debugging info
+ -g:none Generate no debugging info
+ -g:{lines,vars,source} Generate only some debugging info
+ -nowarn Generate no warnings
+ -verbose Output messages about what the compiler is doing
+ -deprecation Output source locations where deprecated APIs are used
+ -classpath <path> Specify where to find user class files and annotation processors
+ -cp <path> Specify where to find user class files and annotation processors
+ -sourcepath <path> Specify where to find input source files
+ -bootclasspath <path> Override location of bootstrap class files
+ -extdirs <dirs> Override location of installed extensions
+ -endorseddirs <dirs> Override location of endorsed standards path
+ -proc:{none, only} Control whether annotation processing and/or compilation is done.
+ -processor <class> Name of the annotation processor to run; bypasses default discovery process
+ -processorpath <path> Specify where to find annotation processors
+ -d <directory> Specify where to place generated class files
+ -s <directory> Specify where to place generated source files
+ -encoding <encoding> Specify character encoding used by source files
+ -source <release> Provide source compatibility with specified release
+ -target <release> Generate class files for specific VM version
+ -version Version information
+ -help Print a synopsis of standard options
+ -A[key[=value]] Options to pass to annotation processors
+ -X Print a synopsis of nonstandard options
+ -J<flag> Pass <flag> directly to the runtime system
+
+files/cli/test2/Main.java:5: package test1 does not exist
+ test1.Main.main(args);
+ ^
+1 error
diff --git a/test/attic/files/cli/test2/Main.check.jikes b/test/attic/files/cli/test2/Main.check.jikes
new file mode 100644
index 0000000000..97943e8347
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.jikes
@@ -0,0 +1,9 @@
+Error: "-dd" is an invalid option.
+use: jikes [options] [@files] file.java...
+For more help, try -help or -version.
+
+Found 1 semantic error compiling "files/cli/test2/Main.java":
+
+ 6. test1.Main.main(args);
+ ^---^
+*** Semantic Error: No accessible field named "test1" was found in type "test2.Main".
diff --git a/test/attic/files/cli/test2/Main.check.jikes5 b/test/attic/files/cli/test2/Main.check.jikes5
new file mode 100644
index 0000000000..97943e8347
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.jikes5
@@ -0,0 +1,9 @@
+Error: "-dd" is an invalid option.
+use: jikes [options] [@files] file.java...
+For more help, try -help or -version.
+
+Found 1 semantic error compiling "files/cli/test2/Main.java":
+
+ 6. test1.Main.main(args);
+ ^---^
+*** Semantic Error: No accessible field named "test1" was found in type "test2.Main".
diff --git a/test/attic/files/cli/test2/Main.check.scala b/test/attic/files/cli/test2/Main.check.scala
new file mode 100644
index 0000000000..7e5f17625b
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.scala
@@ -0,0 +1,24 @@
+unknown option: '-cpp'
+scala [ <option> ]... [<torun> <arguments>]
+
+All options to scalac are allowed. See scalac -help.
+
+<torun>, if present, is an object or script file to run.
+If no <torun> is present, run an interactive interpreter.
+
+Option -howtorun allows explicitly specifying how to run <torun>:
+ script: it is a script file
+ object: it is an object name
+ guess: (the default) try to guess
+
+Option -savecompiled requests that the compiled script be saved
+for future use.
+
+Option -nocompdaemon requests that the fsc offline compiler not be used.
+
+Option -Dproperty=value sets a Java system property.
+
+2: 1: test 1 passed (1)
+2: 1: test 2 passed (1)
+2: 1: test 3 passed (1)
+2: 1: test 4 passed (2)
diff --git a/test/attic/files/cli/test2/Main.check.scala_api b/test/attic/files/cli/test2/Main.check.scala_api
new file mode 100644
index 0000000000..bcb0f0c7fb
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.scala_api
@@ -0,0 +1,37 @@
+|-- all-classes.html
+|-- index.html
+|-- modules.html
+|-- nav-classes.html
+|-- root-content.html
+|-- scala
+| |-- Any.html
+| |-- AnyRef.html
+| |-- AnyVal.html
+| |-- Boolean.html
+| |-- Byte.html
+| |-- Char.html
+| |-- Double.html
+| |-- Float.html
+| |-- Int.html
+| |-- Long.html
+| |-- Nothing.html
+| |-- Null.html
+| |-- Short.html
+| |-- Unit.html
+| `-- runtime
+| |-- BoxedFloat.html
+| |-- BoxedInt.html
+| |-- BoxedLong.html
+| `-- BoxedNumber.html
+|-- script.js
+|-- style.css
+|-- test1
+| `-- Main$object.html
+|-- test1$content.html
+|-- test1$package.html
+|-- test2
+| `-- Main$object.html
+|-- test2$content.html
+`-- test2$package.html
+
+4 directories, 31 files
diff --git a/test/attic/files/cli/test2/Main.check.scala_j9 b/test/attic/files/cli/test2/Main.check.scala_j9
new file mode 100644
index 0000000000..80cbb50fa9
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.scala_j9
@@ -0,0 +1,15 @@
+unknown option: '-cpp'
+scala [ <compiler-option> | -howtorun:how ]... [<torun> <arguments>]
+
+<compiler-option>'s are as for scalac; see scalac -help.
+<torun>, if present, is an object or script file to run.
+If no <torun> is present, run an interactive interpreter.
+-howtorun allows explicitly specifying how to run <torun>:
+ script: it is a script file
+ object: it is an object name
+ guess: (the default) try to guess
+
+2: 1: test 1 passed (1)
+2: 1: test 2 passed (1)
+2: 1: test 3 passed (1)
+2: 1: test 4 passed (2)
diff --git a/test/attic/files/cli/test2/Main.check.scalac b/test/attic/files/cli/test2/Main.check.scalac
new file mode 100644
index 0000000000..8465810d0b
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.scalac
@@ -0,0 +1,63 @@
+scalac error: bad option: '-dd'
+ scalac -help gives more information
+Usage: scalac <options | source files>
+where possible options include:
+ -doc Generate documentation
+ -g:<g> Generate debugging info (none,source,line,vars,notc)
+ -nowarn Generate no warnings
+ -noassert Generate no assertions and assumptions
+ -verbose Output messages about what the compiler is doing
+ -classpath <path> Specify where to find user class files
+ -sourcepath <path> Specify where to find input source files
+ -bootclasspath <path> Override location of bootstrap class files
+ -extdirs <dirs> Override location of installed extensions
+ -d <directory> Specify where to place generated class files
+ -encoding <encoding> Specify character encoding used by source files
+ -windowtitle <windowtitle> Specify window title of generated HTML documentation
+ -documenttitle <documenttitle> Specify document title of generated HTML documentation
+ -target:<target> Specify which backend to use (jvm-1.5,msil)
+ -migrate Assist in migrating from Scala version 1.0
+ -o <file> Name of the output assembly (only relevant with -target:msil)
+ -r <path> List of assemblies referenced by the program (only relevant with -target:msil)
+ -debug Output debugging messages
+ -deprecation enable detailed deprecation warnings
+ -unchecked enable detailed unchecked warnings
+ -statistics Print compiler statistics
+ -explaintypes Explain type errors in more detail
+ -resident Compiler stays resident, files to compile are read from standard input
+ -uniqid Print identifiers with unique names (debugging option)
+ -printtypes Print tree types (debugging option)
+ -prompt Display a prompt after each error (debugging option)
+ -noimports Compile without any implicit imports
+ -nopredefs Compile without any implicit predefined values
+ -skip:<phase> Skip <phase>
+ -check:<phase> Check the tree at start of <phase>
+ -print:<phase> Print out program after <phase>
+ -printer:<printer> Printer to use (text,html)
+ -printfile <file> Specify file in which to print trees
+ -graph:<phase> Graph the program after <phase>
+ -browse:<phase> Browse the abstract syntax tree after <phase>
+ -stop:<phase> Stop after phase <phase>
+ -log:<phase> Log operations in <phase>
+ -logall Log all operations
+ -version Print product version and exit
+ -help Print a synopsis of standard options
+ -nouescape disables handling of \u unicode escapes
+ -Xinline Perform inlining when possible
+ -XO Optimize. implies -Xinline, -Xcloselim and -Xdce
+ -Xcloselim Perform closure elimination
+ -Xdce Perform dead code elimination
+ -Xwarndeadcode Emit warnings for dead code
+ -XbytecodeRead Enable bytecode reader.
+ -Xdetach Perform detaching of remote closures
+ -Xshowcls <class> Show class info
+ -Xshowobj <object> Show object info
+ -Xlinearizer:<Xlinearizer> Linearizer to use (normal,dfs,rpo,dump)
+ -Xgenerics Use generic Java types
+ -Xprintpos Print tree positions (as offsets)
+ -Xscript compile script file
+ -Xexperimental enable experimental extensions
+ -Xplugtypes parse but ignore annotations in more locations
+ -Xkilloption optimizes option types
+
+one error found
diff --git a/test/attic/files/cli/test2/Main.check.scalaint b/test/attic/files/cli/test2/Main.check.scalaint
new file mode 100644
index 0000000000..89b6766bb5
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.check.scalaint
@@ -0,0 +1,45 @@
+unknown option: '-cpp'
+scala [ <option> ]... [<torun> <arguments>]
+
+All options to scalac are allowed. See scalac -help.
+
+<torun>, if present, is an object or script file to run.
+If no <torun> is present, run an interactive interpreter.
+
+Option -howtorun allows explicitly specifying how to run <torun>:
+ script: it is a script file
+ object: it is an object name
+ guess: (the default) try to guess
+
+Option -savecompiled requests that the compiled script be saved
+for future use.
+
+Option -nocompdaemon requests that the fsc offline compiler not be used.
+
+Option -Dproperty=value sets a Java system property.
+
+
+This is an interpreter for Scala.
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala> 2: 1: test 1 passed (1)
+unnamed0: scala.Unit = ()
+
+scala>
+This is an interpreter for Scala.
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala> 2: 1: test 2 passed (1)
+unnamed0: scala.Unit = ()
+
+scala>
+This is an interpreter for Scala.
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala> 2: 1: test 3 passed (1)
+unnamed0: scala.Unit = ()
+
+scala>
diff --git a/test/attic/files/cli/test2/Main.java b/test/attic/files/cli/test2/Main.java
new file mode 100644
index 0000000000..f6797632bf
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.java
@@ -0,0 +1,8 @@
+// @info 1 dependency
+package test2;
+public class Main {
+ public static void main(String args[]) {
+ System.out.print("2: ");
+ test1.Main.main(args);
+ }
+}
diff --git a/test/attic/files/cli/test2/Main.scala b/test/attic/files/cli/test2/Main.scala
new file mode 100644
index 0000000000..1d43759fdf
--- /dev/null
+++ b/test/attic/files/cli/test2/Main.scala
@@ -0,0 +1,8 @@
+// @info 1 dependency
+package test2
+object Main {
+ def main(args: Array[String]) = {
+ Console.print("2: ")
+ test1.Main.main(args)
+ }
+}