< prev index next >

test/jdk/tools/launcher/HelpFlagsTest.java

Print this page

 46     // Tools that should not be tested because a usage message is pointless.
 47     static final String[] TOOLS_NOT_TO_TEST = {
 48         "jaccessinspector", // gui, don't test, win only
 49         "jaccessinspector-32", // gui, don't test, win-32 only
 50         "jaccesswalker",    // gui, don't test, win only
 51         "jaccesswalker-32", // gui, don't test, win-32 only
 52         "jconsole",         // gui, don't test
 53         "servertool",       // none. Shell, don't test.
 54         "javaw",            // don't test, win only
 55         // These shall have a help message that resembles that of
 56         // MIT's tools. Thus -?, -h and --help are supported, but not
 57         // mentioned in the help text.
 58         "kinit",
 59         "klist",
 60         "ktab",
 61         // Oracle proprietary tools without help message.
 62         "javacpl",
 63         "jmc",
 64         "jweblauncher",
 65         "jcontrol",
 66         "ssvagent"



 67     };
 68 
 69     // Lists which tools support which flags.
 70     private static class ToolHelpSpec {
 71         String toolname;
 72 
 73         // How the flags supposed to be supported are handled.
 74         //
 75         // These flags are supported, i.e.,
 76         // * the tool accepts the flag
 77         // * the tool prints a help message if the flag is specified
 78         // * this help message lists the flag
 79         // * the tool exits with exit code '0'.
 80         boolean supportsQuestionMark;
 81         boolean supportsH;
 82         boolean supportsHelp;
 83 
 84         // One tool returns with exit code != '0'.
 85         int exitcodeOfHelp;
 86 

 46     // Tools that should not be tested because a usage message is pointless.
 47     static final String[] TOOLS_NOT_TO_TEST = {
 48         "jaccessinspector", // gui, don't test, win only
 49         "jaccessinspector-32", // gui, don't test, win-32 only
 50         "jaccesswalker",    // gui, don't test, win only
 51         "jaccesswalker-32", // gui, don't test, win-32 only
 52         "jconsole",         // gui, don't test
 53         "servertool",       // none. Shell, don't test.
 54         "javaw",            // don't test, win only
 55         // These shall have a help message that resembles that of
 56         // MIT's tools. Thus -?, -h and --help are supported, but not
 57         // mentioned in the help text.
 58         "kinit",
 59         "klist",
 60         "ktab",
 61         // Oracle proprietary tools without help message.
 62         "javacpl",
 63         "jmc",
 64         "jweblauncher",
 65         "jcontrol",
 66         "ssvagent",
 67         // asprof don't test
 68         "asprof",
 69         "jfrconv"
 70     };
 71 
 72     // Lists which tools support which flags.
 73     private static class ToolHelpSpec {
 74         String toolname;
 75 
 76         // How the flags supposed to be supported are handled.
 77         //
 78         // These flags are supported, i.e.,
 79         // * the tool accepts the flag
 80         // * the tool prints a help message if the flag is specified
 81         // * this help message lists the flag
 82         // * the tool exits with exit code '0'.
 83         boolean supportsQuestionMark;
 84         boolean supportsH;
 85         boolean supportsHelp;
 86 
 87         // One tool returns with exit code != '0'.
 88         int exitcodeOfHelp;
 89 
< prev index next >