diff options
author | michelou <michelou@epfl.ch> | 2006-04-20 15:53:25 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-04-20 15:53:25 +0000 |
commit | aec0da2eadadcdb5e0320db477cf699e6e94ac3e (patch) | |
tree | 472c32c739f08fb41647f8acf731f758ed06c7ef /test/files/cli/test2 | |
parent | 5fe735b785e0d57f574809ad29dbc52273875156 (diff) | |
download | scala-aec0da2eadadcdb5e0320db477cf699e6e94ac3e.tar.gz scala-aec0da2eadadcdb5e0320db477cf699e6e94ac3e.tar.bz2 scala-aec0da2eadadcdb5e0320db477cf699e6e94ac3e.zip |
added CLI tests for Jikes and the J9 VM (IBM)
Diffstat (limited to 'test/files/cli/test2')
-rw-r--r-- | test/files/cli/test2/Main.check.j9vm5 | 4 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.jikes | 9 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.scalac | 86 | ||||
-rw-r--r-- | test/files/cli/test2/Main.check.scalaint | 82 |
4 files changed, 99 insertions, 82 deletions
diff --git a/test/files/cli/test2/Main.check.j9vm5 b/test/files/cli/test2/Main.check.j9vm5 new file mode 100644 index 0000000000..8f4fdf8aa1 --- /dev/null +++ b/test/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/files/cli/test2/Main.check.jikes b/test/files/cli/test2/Main.check.jikes new file mode 100644 index 0000000000..44131b22c2 --- /dev/null +++ b/test/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": + + 5. test1.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test1" was found in type "test2.Main". diff --git a/test/files/cli/test2/Main.check.scalac b/test/files/cli/test2/Main.check.scalac index 2cf40d5de8..ab0b5c66da 100644 --- a/test/files/cli/test2/Main.check.scalac +++ b/test/files/cli/test2/Main.check.scalac @@ -1,47 +1,49 @@ -scalac error: unknown option: '-dd' - scalac -help gives more information +Scala compiler error: unknown option: '-dd' + Scala compiler -help gives more information Usage: scalac <options | source files> where possible options include: - -doc Generate documentation - -g Generate debugging info - -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 - -target:<target> Specify which backend to use (jvm,msil) - -migrate Assist in migrating from Scala version 1.0 - -debug Output debugging messages - -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> - -version Print product version and exit - -help Print a synopsis of standard options - -Xinline Perform inlining when possible - -Xshowcls <class> Show class info - -Xshowobj <object> Show object info - -Xshowicode Print the generated ICode - -Xgadt enable gadt for classes - -Xlinearizer:<Xlinearizer> Linearizer to use (normal,dfs,rpo) - -Xgenerics Use generic Java types + -doc Generate documentation + -g Generate debugging info + -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,msil) + -migrate Assist in migrating from Scala version 1.0 + -debug Output debugging messages + -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> + -version Print product version and exit + -help Print a synopsis of standard options + -Xinline Perform inlining when possible + -Xshowcls <class> Show class info + -Xshowobj <object> Show object info + -Xshowicode Print the generated ICode + -Xgadt enable gadt for classes + -Xlinearizer:<Xlinearizer> Linearizer to use (normal,dfs,rpo) + -Xgenerics Use generic Java types one error found files/cli/test2/Main.scala:5 error: not found: value test1 diff --git a/test/files/cli/test2/Main.check.scalaint b/test/files/cli/test2/Main.check.scalaint index 2719b50b7d..69bc170c4c 100644 --- a/test/files/cli/test2/Main.check.scalaint +++ b/test/files/cli/test2/Main.check.scalaint @@ -1,46 +1,48 @@ scalaint: unknown option: '-cpp' Usage: scalaint <options | source files> where possible options include: - -doc Generate documentation - -g Generate debugging info - -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 - -target:<target> Specify which backend to use (jvm,msil) - -migrate Assist in migrating from Scala version 1.0 - -debug Output debugging messages - -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> - -version Print product version and exit - -help Print a synopsis of standard options - -Xinline Perform inlining when possible - -Xshowcls <class> Show class info - -Xshowobj <object> Show object info - -Xshowicode Print the generated ICode - -Xgadt enable gadt for classes - -Xlinearizer:<Xlinearizer> Linearizer to use (normal,dfs,rpo) - -Xgenerics Use generic Java types + -doc Generate documentation + -g Generate debugging info + -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,msil) + -migrate Assist in migrating from Scala version 1.0 + -debug Output debugging messages + -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> + -version Print product version and exit + -help Print a synopsis of standard options + -Xinline Perform inlining when possible + -Xshowcls <class> Show class info + -Xshowobj <object> Show object info + -Xshowicode Print the generated ICode + -Xgadt enable gadt for classes + -Xlinearizer:<Xlinearizer> Linearizer to use (normal,dfs,rpo) + -Xgenerics Use generic Java types This is an interpreter for Scala. |