From e8a121e9e1ade3f283f42fceb3c18f30a8468f57 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 5 Apr 2010 06:24:22 +0000 Subject: If I work on this patch any longer without chec... If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.] --- test/attic/files/cli/test1/Main.check.j9vm5 | 4 ++ test/attic/files/cli/test1/Main.check.java | 6 +++ test/attic/files/cli/test1/Main.check.java5 | 6 +++ test/attic/files/cli/test1/Main.check.java5_api | 19 ++++++++ test/attic/files/cli/test1/Main.check.java5_j9 | 4 ++ test/attic/files/cli/test1/Main.check.javac | 19 ++++++++ test/attic/files/cli/test1/Main.check.javac5 | 24 ++++++++++ test/attic/files/cli/test1/Main.check.javac6 | 29 ++++++++++++ test/attic/files/cli/test1/Main.check.jikes | 3 ++ test/attic/files/cli/test1/Main.check.jikes5 | 3 ++ test/attic/files/cli/test1/Main.check.scala | 24 ++++++++++ test/attic/files/cli/test1/Main.check.scala_api | 33 +++++++++++++ test/attic/files/cli/test1/Main.check.scala_j9 | 15 ++++++ test/attic/files/cli/test1/Main.check.scalac | 63 +++++++++++++++++++++++++ test/attic/files/cli/test1/Main.check.scalaint | 45 ++++++++++++++++++ test/attic/files/cli/test1/Main.java | 8 ++++ test/attic/files/cli/test1/Main.scala | 8 ++++ test/attic/files/cli/test2/Main.check.j9vm5 | 4 ++ test/attic/files/cli/test2/Main.check.java | 6 +++ test/attic/files/cli/test2/Main.check.java5 | 6 +++ test/attic/files/cli/test2/Main.check.java5_api | 24 ++++++++++ test/attic/files/cli/test2/Main.check.java5_j9 | 36 ++++++++++++++ test/attic/files/cli/test2/Main.check.javac | 27 +++++++++++ test/attic/files/cli/test2/Main.check.javac5 | 28 +++++++++++ test/attic/files/cli/test2/Main.check.javac6 | 33 +++++++++++++ test/attic/files/cli/test2/Main.check.jikes | 9 ++++ test/attic/files/cli/test2/Main.check.jikes5 | 9 ++++ test/attic/files/cli/test2/Main.check.scala | 24 ++++++++++ test/attic/files/cli/test2/Main.check.scala_api | 37 +++++++++++++++ test/attic/files/cli/test2/Main.check.scala_j9 | 15 ++++++ test/attic/files/cli/test2/Main.check.scalac | 63 +++++++++++++++++++++++++ test/attic/files/cli/test2/Main.check.scalaint | 45 ++++++++++++++++++ test/attic/files/cli/test2/Main.java | 8 ++++ test/attic/files/cli/test2/Main.scala | 8 ++++ test/attic/files/cli/test3/Main.check.j9vm5 | 5 ++ test/attic/files/cli/test3/Main.check.java | 10 ++++ test/attic/files/cli/test3/Main.check.java5 | 10 ++++ test/attic/files/cli/test3/Main.check.java5_api | 29 ++++++++++++ test/attic/files/cli/test3/Main.check.java5_j9 | 36 ++++++++++++++ test/attic/files/cli/test3/Main.check.javac | 33 +++++++++++++ test/attic/files/cli/test3/Main.check.javac5 | 31 ++++++++++++ test/attic/files/cli/test3/Main.check.javac6 | 36 ++++++++++++++ test/attic/files/cli/test3/Main.check.jikes | 14 ++++++ test/attic/files/cli/test3/Main.check.jikes5 | 14 ++++++ test/attic/files/cli/test3/Main.check.scala | 28 +++++++++++ test/attic/files/cli/test3/Main.check.scala_api | 41 ++++++++++++++++ test/attic/files/cli/test3/Main.check.scala_j9 | 19 ++++++++ test/attic/files/cli/test3/Main.check.scalac | 63 +++++++++++++++++++++++++ test/attic/files/cli/test3/Main.check.scalaint | 48 +++++++++++++++++++ test/attic/files/cli/test3/Main.java | 10 ++++ test/attic/files/cli/test3/Main.scala | 10 ++++ 51 files changed, 1132 insertions(+) create mode 100644 test/attic/files/cli/test1/Main.check.j9vm5 create mode 100644 test/attic/files/cli/test1/Main.check.java create mode 100644 test/attic/files/cli/test1/Main.check.java5 create mode 100644 test/attic/files/cli/test1/Main.check.java5_api create mode 100644 test/attic/files/cli/test1/Main.check.java5_j9 create mode 100644 test/attic/files/cli/test1/Main.check.javac create mode 100644 test/attic/files/cli/test1/Main.check.javac5 create mode 100644 test/attic/files/cli/test1/Main.check.javac6 create mode 100644 test/attic/files/cli/test1/Main.check.jikes create mode 100644 test/attic/files/cli/test1/Main.check.jikes5 create mode 100644 test/attic/files/cli/test1/Main.check.scala create mode 100644 test/attic/files/cli/test1/Main.check.scala_api create mode 100644 test/attic/files/cli/test1/Main.check.scala_j9 create mode 100644 test/attic/files/cli/test1/Main.check.scalac create mode 100644 test/attic/files/cli/test1/Main.check.scalaint create mode 100644 test/attic/files/cli/test1/Main.java create mode 100644 test/attic/files/cli/test1/Main.scala create mode 100644 test/attic/files/cli/test2/Main.check.j9vm5 create mode 100644 test/attic/files/cli/test2/Main.check.java create mode 100644 test/attic/files/cli/test2/Main.check.java5 create mode 100644 test/attic/files/cli/test2/Main.check.java5_api create mode 100644 test/attic/files/cli/test2/Main.check.java5_j9 create mode 100644 test/attic/files/cli/test2/Main.check.javac create mode 100644 test/attic/files/cli/test2/Main.check.javac5 create mode 100644 test/attic/files/cli/test2/Main.check.javac6 create mode 100644 test/attic/files/cli/test2/Main.check.jikes create mode 100644 test/attic/files/cli/test2/Main.check.jikes5 create mode 100644 test/attic/files/cli/test2/Main.check.scala create mode 100644 test/attic/files/cli/test2/Main.check.scala_api create mode 100644 test/attic/files/cli/test2/Main.check.scala_j9 create mode 100644 test/attic/files/cli/test2/Main.check.scalac create mode 100644 test/attic/files/cli/test2/Main.check.scalaint create mode 100644 test/attic/files/cli/test2/Main.java create mode 100644 test/attic/files/cli/test2/Main.scala create mode 100644 test/attic/files/cli/test3/Main.check.j9vm5 create mode 100644 test/attic/files/cli/test3/Main.check.java create mode 100644 test/attic/files/cli/test3/Main.check.java5 create mode 100644 test/attic/files/cli/test3/Main.check.java5_api create mode 100644 test/attic/files/cli/test3/Main.check.java5_j9 create mode 100644 test/attic/files/cli/test3/Main.check.javac create mode 100644 test/attic/files/cli/test3/Main.check.javac5 create mode 100644 test/attic/files/cli/test3/Main.check.javac6 create mode 100644 test/attic/files/cli/test3/Main.check.jikes create mode 100644 test/attic/files/cli/test3/Main.check.jikes5 create mode 100644 test/attic/files/cli/test3/Main.check.scala create mode 100644 test/attic/files/cli/test3/Main.check.scala_api create mode 100644 test/attic/files/cli/test3/Main.check.scala_j9 create mode 100644 test/attic/files/cli/test3/Main.check.scalac create mode 100644 test/attic/files/cli/test3/Main.check.scalaint create mode 100644 test/attic/files/cli/test3/Main.java create mode 100644 test/attic/files/cli/test3/Main.scala (limited to 'test/attic') 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 +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 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 + -source Provide source compatibility with specified release + -target 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 +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 Specify where to find user class files + -cp 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 + -endorseddirs Override location of endorsed standards path + -d Specify where to place generated class files + -encoding Specify character encoding used by source files + -source Provide source compatibility with specified release + -target 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 Pass 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 +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 Specify where to find user class files and annotation processors + -cp Specify where to find user class files and annotation processors + -sourcepath Specify where to find input source files + -bootclasspath Override location of bootstrap class files + -extdirs Override location of installed extensions + -endorseddirs Override location of endorsed standards path + -proc:{none, only} Control whether annotation processing and/or compilation is done. + -processor Name of the annotation processor to run; bypasses default discovery process + -processorpath Specify where to find annotation processors + -d Specify where to place generated class files + -s Specify where to place generated source files + -encoding Specify character encoding used by source files + -source Provide source compatibility with specified release + -target 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 Pass 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 [