From aec0da2eadadcdb5e0320db477cf699e6e94ac3e Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 20 Apr 2006 15:53:25 +0000 Subject: added CLI tests for Jikes and the J9 VM (IBM) --- test/files/cli/test3/Main.check.j9vm5 | 5 ++ test/files/cli/test3/Main.check.jikes | 14 ++++++ test/files/cli/test3/Main.check.scalac | 86 ++++++++++++++++---------------- test/files/cli/test3/Main.check.scalaint | 82 +++++++++++++++--------------- 4 files changed, 105 insertions(+), 82 deletions(-) create mode 100644 test/files/cli/test3/Main.check.j9vm5 create mode 100644 test/files/cli/test3/Main.check.jikes (limited to 'test/files/cli/test3') diff --git a/test/files/cli/test3/Main.check.j9vm5 b/test/files/cli/test3/Main.check.j9vm5 new file mode 100644 index 0000000000..a094dc8daf --- /dev/null +++ b/test/files/cli/test3/Main.check.j9vm5 @@ -0,0 +1,5 @@ +env: -cpp: No such file or directory +env: test3.Main: No such file or directory +env: -cp: No such file or directory +3: 1: test 3 passed +3: 2: 1: test 3 passed diff --git a/test/files/cli/test3/Main.check.jikes b/test/files/cli/test3/Main.check.jikes new file mode 100644 index 0000000000..d183a014d9 --- /dev/null +++ b/test/files/cli/test3/Main.check.jikes @@ -0,0 +1,14 @@ +Error: "-dd" is an invalid option. +use: jikes [options] [@files] file.java... +For more help, try -help or -version. + +Found 2 semantic errors compiling "files/cli/test3/Main.java": + + 5. test1.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test1" was found in type "test3.Main". + + + 7. test2.Main.main(args); + ^---^ +*** Semantic Error: No accessible field named "test2" was found in type "test3.Main". diff --git a/test/files/cli/test3/Main.check.scalac b/test/files/cli/test3/Main.check.scalac index 71d2ab1cbd..ddddcb3d9a 100644 --- a/test/files/cli/test3/Main.check.scalac +++ b/test/files/cli/test3/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 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 Specify where to find user class files - -sourcepath Specify where to find input source files - -bootclasspath Override location of bootstrap class files - -extdirs Override location of installed extensions - -d Specify where to place generated class files - -encoding Specify character encoding used by source files - -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: Skip - -check: Check the tree at start of - -print: Print out program after - -printer: Printer to use (text,html) - -printfile Specify file in which to print trees - -graph: Graph the program after - -browse: Browse the abstract syntax tree after - -stop: Stop after phase - -log: Log operations in - -version Print product version and exit - -help Print a synopsis of standard options - -Xinline Perform inlining when possible - -Xshowcls Show class info - -Xshowobj Show object info - -Xshowicode Print the generated ICode - -Xgadt enable gadt for classes - -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 Specify where to find user class files + -sourcepath Specify where to find input source files + -bootclasspath Override location of bootstrap class files + -extdirs Override location of installed extensions + -d Specify where to place generated class files + -encoding Specify character encoding used by source files + -windowtitle Specify window title of generated HTML documentation + -documenttitle Specify document title of generated HTML documentation + -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: Skip + -check: Check the tree at start of + -print: Print out program after + -printer: Printer to use (text,html) + -printfile Specify file in which to print trees + -graph: Graph the program after + -browse: Browse the abstract syntax tree after + -stop: Stop after phase + -log: Log operations in + -version Print product version and exit + -help Print a synopsis of standard options + -Xinline Perform inlining when possible + -Xshowcls Show class info + -Xshowobj Show object info + -Xshowicode Print the generated ICode + -Xgadt enable gadt for classes + -Xlinearizer: Linearizer to use (normal,dfs,rpo) + -Xgenerics Use generic Java types one error found files/cli/test3/Main.scala:5 error: not found: value test1 diff --git a/test/files/cli/test3/Main.check.scalaint b/test/files/cli/test3/Main.check.scalaint index 9b5d479db0..2fdf9c927a 100644 --- a/test/files/cli/test3/Main.check.scalaint +++ b/test/files/cli/test3/Main.check.scalaint @@ -1,46 +1,48 @@ scalaint: unknown option: '-cpp' Usage: scalaint 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 Specify where to find user class files - -sourcepath Specify where to find input source files - -bootclasspath Override location of bootstrap class files - -extdirs Override location of installed extensions - -d Specify where to place generated class files - -encoding Specify character encoding used by source files - -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: Skip - -check: Check the tree at start of - -print: Print out program after - -printer: Printer to use (text,html) - -printfile Specify file in which to print trees - -graph: Graph the program after - -browse: Browse the abstract syntax tree after - -stop: Stop after phase - -log: Log operations in - -version Print product version and exit - -help Print a synopsis of standard options - -Xinline Perform inlining when possible - -Xshowcls Show class info - -Xshowobj Show object info - -Xshowicode Print the generated ICode - -Xgadt enable gadt for classes - -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 Specify where to find user class files + -sourcepath Specify where to find input source files + -bootclasspath Override location of bootstrap class files + -extdirs Override location of installed extensions + -d Specify where to place generated class files + -encoding Specify character encoding used by source files + -windowtitle Specify window title of generated HTML documentation + -documenttitle Specify document title of generated HTML documentation + -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: Skip + -check: Check the tree at start of + -print: Print out program after + -printer: Printer to use (text,html) + -printfile Specify file in which to print trees + -graph: Graph the program after + -browse: Browse the abstract syntax tree after + -stop: Stop after phase + -log: Log operations in + -version Print product version and exit + -help Print a synopsis of standard options + -Xinline Perform inlining when possible + -Xshowcls Show class info + -Xshowobj Show object info + -Xshowicode Print the generated ICode + -Xgadt enable gadt for classes + -Xlinearizer: Linearizer to use (normal,dfs,rpo) + -Xgenerics Use generic Java types This is an interpreter for Scala. -- cgit v1.2.3