diff options
Diffstat (limited to 'test/attic/files/cli/test1')
-rw-r--r-- | test/attic/files/cli/test1/Main.check.j9vm5 | 4 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.java | 6 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.java5 | 6 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.java5_api | 19 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.java5_j9 | 4 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.javac | 19 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.javac5 | 24 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.javac6 | 29 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.jikes | 3 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.jikes5 | 3 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.scala | 24 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.scala_api | 33 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.scala_j9 | 15 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.scalac | 63 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.check.scalaint | 45 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.java | 8 | ||||
-rw-r--r-- | test/attic/files/cli/test1/Main.scala | 8 |
17 files changed, 313 insertions, 0 deletions
diff --git a/test/attic/files/cli/test1/Main.check.j9vm5 b/test/attic/files/cli/test1/Main.check.j9vm5 new file mode 100644 index 0000000000..de454ef478 --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.j9vm5 @@ -0,0 +1,4 @@ +env: -cpp: No such file or directory +env: test1.Main: No such file or directory +env: -cp: No such file or directory +1: test 3 passed diff --git a/test/attic/files/cli/test1/Main.check.java b/test/attic/files/cli/test1/Main.check.java new file mode 100644 index 0000000000..64410de98f --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.java @@ -0,0 +1,6 @@ +Unrecognized option: -cpp +Could not create the Java virtual machine. +1: test 1 passed (1) +1: test 2 passed (1) +1: test 3 passed (1) +1: test 4 passed (2) diff --git a/test/attic/files/cli/test1/Main.check.java5 b/test/attic/files/cli/test1/Main.check.java5 new file mode 100644 index 0000000000..64410de98f --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.java5 @@ -0,0 +1,6 @@ +Unrecognized option: -cpp +Could not create the Java virtual machine. +1: test 1 passed (1) +1: test 2 passed (1) +1: test 3 passed (1) +1: test 4 passed (2) diff --git a/test/attic/files/cli/test1/Main.check.java5_api b/test/attic/files/cli/test1/Main.check.java5_api new file mode 100644 index 0000000000..8693a5d92f --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.java5_api @@ -0,0 +1,19 @@ +|-- 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 + +2 directories, 15 files diff --git a/test/attic/files/cli/test1/Main.check.java5_j9 b/test/attic/files/cli/test1/Main.check.java5_j9 new file mode 100644 index 0000000000..de454ef478 --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.java5_j9 @@ -0,0 +1,4 @@ +env: -cpp: No such file or directory +env: test1.Main: No such file or directory +env: -cp: No such file or directory +1: test 3 passed diff --git a/test/attic/files/cli/test1/Main.check.javac b/test/attic/files/cli/test1/Main.check.javac new file mode 100644 index 0000000000..ba25d9b6ca --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.javac @@ -0,0 +1,19 @@ +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 + diff --git a/test/attic/files/cli/test1/Main.check.javac5 b/test/attic/files/cli/test1/Main.check.javac5 new file mode 100644 index 0000000000..0cb29d31ff --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.javac5 @@ -0,0 +1,24 @@ +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 + diff --git a/test/attic/files/cli/test1/Main.check.javac6 b/test/attic/files/cli/test1/Main.check.javac6 new file mode 100644 index 0000000000..8f37a05bcb --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.javac6 @@ -0,0 +1,29 @@ +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 + diff --git a/test/attic/files/cli/test1/Main.check.jikes b/test/attic/files/cli/test1/Main.check.jikes new file mode 100644 index 0000000000..cd891689db --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.jikes @@ -0,0 +1,3 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. diff --git a/test/attic/files/cli/test1/Main.check.jikes5 b/test/attic/files/cli/test1/Main.check.jikes5 new file mode 100644 index 0000000000..cd891689db --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.jikes5 @@ -0,0 +1,3 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. diff --git a/test/attic/files/cli/test1/Main.check.scala b/test/attic/files/cli/test1/Main.check.scala new file mode 100644 index 0000000000..43b200ae02 --- /dev/null +++ b/test/attic/files/cli/test1/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. + +1: test 1 passed (1) +1: test 2 passed (1) +1: test 3 passed (1) +1: test 4 passed (2) diff --git a/test/attic/files/cli/test1/Main.check.scala_api b/test/attic/files/cli/test1/Main.check.scala_api new file mode 100644 index 0000000000..6fac39d3f0 --- /dev/null +++ b/test/attic/files/cli/test1/Main.check.scala_api @@ -0,0 +1,33 @@ +|-- 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 + +3 directories, 28 files diff --git a/test/attic/files/cli/test1/Main.check.scala_j9 b/test/attic/files/cli/test1/Main.check.scala_j9 new file mode 100644 index 0000000000..65d5ddaac4 --- /dev/null +++ b/test/attic/files/cli/test1/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 + +1: test 1 passed (1) +1: test 2 passed (1) +1: test 3 passed (1) +1: test 4 passed (2) diff --git a/test/attic/files/cli/test1/Main.check.scalac b/test/attic/files/cli/test1/Main.check.scalac new file mode 100644 index 0000000000..8465810d0b --- /dev/null +++ b/test/attic/files/cli/test1/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/test1/Main.check.scalaint b/test/attic/files/cli/test1/Main.check.scalaint new file mode 100644 index 0000000000..88345d1874 --- /dev/null +++ b/test/attic/files/cli/test1/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> 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> 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> 1: test 3 passed (1) +unnamed0: scala.Unit = () + +scala> diff --git a/test/attic/files/cli/test1/Main.java b/test/attic/files/cli/test1/Main.java new file mode 100644 index 0000000000..8850b87517 --- /dev/null +++ b/test/attic/files/cli/test1/Main.java @@ -0,0 +1,8 @@ +// @info no dependency +package test1; +public class Main { + public static void main(String args[]) { + String arg = (args.length > 0) ? args[0] : "?"; + System.out.println("1: test " + arg + " passed (" + args.length + ")"); + } +} diff --git a/test/attic/files/cli/test1/Main.scala b/test/attic/files/cli/test1/Main.scala new file mode 100644 index 0000000000..f7dd8a0a36 --- /dev/null +++ b/test/attic/files/cli/test1/Main.scala @@ -0,0 +1,8 @@ +// @info no dependency +package test1 +object Main { + def main(args: Array[String]) = { + val arg = if (args != null && args.length > 0) args(0) else "?" + Console.println("1: test " + arg + " passed (" + args.length + ")") + } +} |