.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. .TH JTREG "1" "July 2011" "jtreg Usage:" "User Commands" .SH NAME jtreg \- Regression Test Harness .SH DESCRIPTION Documentation Options .IP Options for additional documentation .TP \fB\-h\fR [words...] | \fB\-help\fR [words...] | \fB\-usage\fR [words...] Command line help. Give words to see help info containing those or use "\-help all" to see all available help. .TP \fB\-n\fR | \fB\-relnote\fR Release notes .TP \fB\-onlineHelp\fR [words...] Show the online help. You can also show the online help from the desktop Help menu. .TP \fB\-t\fR | \fB\-tagspec\fR Tag specification supported by this implementation .TP \fB\-version\fR Give information about the version of jtreg in use. .PP General Options .TP \fB\-allowSetSecurityManager\fR | \fB\-allowSetSecurityManager\fR: Allow sameVM tests to set a security manager. Default is "yes" if option not given or no value given for option. .TP yes Allow sameVM tests to set a security manager .TP no Do not allow sameVM tests to set a security manager .TP on Allow sameVM tests to set a security manager .TP off Do not allow sameVM tests to set a security manager .TP true Allow sameVM tests to set a security manager .TP false Do not allow sameVM tests to set a security manager .TP \fB\-c\fR | \fB\-check\fR Verify correctness of test descriptions. Does NOT run tests. .TP \fB\-dir\fR: Specify a base directory for test files and directories .TP \fB\-e\fR:name[=value][,name[=value]...] Specify additional environment variables to be passed to each test. If a value is not given for a name, the current value of the environment variable will be used. Standard environment variables, like DISPLAY, LANG, windir, SystemRoot, etc, will automatically be given to each test, if they are set in the current environment. .TP \fB\-g\fR | \fB\-gui\fR Access regression extensions via the standard JavaTest harness gui .TP \fB\-ignore\fR: Specify how to handle tests containing an @ignore tag. .TP quiet Completely ignore such tests. .TP error (Default.) Execute the actions up to the @ignore tag, then give an "Error" result. .TP run Run the test, as though the @ignore tag were not present. .TP \fB\-noignore\fR suppress the effect of any @ignore tags, allowing the test to proceed as if the @ignore tags were not present. Deprecated: see the \fB\-ignore\fR option. .TP \fB\-nr\fR | \fB\-noreport\fR Do not generate a final report. .TP \fB\-o\fR: | \fB\-observer\fR: Specifies the class to observe the progress of a test suite; the class must implement a specific interface; contact a developer for details. E.g. \fB\-o\fR:SampleRegressionObserver .TP \fB\-od\fR: | \fB\-observerDir\fR: | \fB\-op\fR: | \fB\-observerPath\fR: Specifies the pathname of a directory or .JAR file in which the observer class is located. The given pathname is simply appended to the CLASSPATH used for the tests, thus care should be taken when naming an observer not to collide with the names of classes internal to the JavaTest harness or the JRE, e.g., put the observer class in its own named package. .TP \fB\-r\fR: | \fB\-reportDir\fR: All report files placed here; "./JTreport" is default .TP \fB\-retain\fR | \fB\-retain\fR:,... Specify files to be retained after each test completes executing. If \fB\-retain\fR is not specified, only the files from the last test executed will be retained. If \fB\-retain\fR is specified with no argument, all files will be retained. Otherwise, the files may be described by one or more of the following values: .TP none Do not retain any of the files generated by each test .TP pass Retain files generated by tests that pass .TP fail Retain files generated by tests that fail .TP error Retain files generated by tests that caused an error .TP all Retain all files generated by each test .TP file\-pattern Retain files that match a specific filename. The name may contain '*' to match any sequence of characters. For example, result.* or *.err. .TP \fB\-ro\fR | \fB\-reportOnly\fR Generate report for previously executed tests. This does not re\-run any tests. A work directory containing the results of the executed tests must be provided. The default location is "./JTwork". To specify an alternate directory, use \fB\-workDir\fR. .TP \fB\-startHttpd\fR Start the http server to view test results .TP \fB\-timeout\fR: | \fB\-timeoutFactor\fR: A scaling factor to extend the default timeout of all tests. Typically used when running on slow file systems. .TP \fB\-w\fR: | \fB\-workDir\fR: Location for .class files, .jtr files, etc. "./JTwork" is default .PP JDK\-related Options .IP By default, tests will be run using the default JVM in the test JDK. You can pass all applicable JVM options via using \fB\-vmoption\fR; in addition, most common JVM options are also supported directly. For full details of any option, consult the documentation for that version of the JDK, or try using "java \fB\-help\fR" or "java \fB\-X\fR". If an option is not applicable to a particular platform or JDK release, it will be rejected. .TP \fB\-agentlib\fR:<[=] Load native agent library .TP \fB\-agentpath\fR:<[=] Load native agent library by full pathname .TP \fB\-classic\fR | \fB\-green\fR | \fB\-native\fR | \fB\-hotspot\fR | \fB\-client\fR | \fB\-server\fR | \fB\-d32\fR | \fB\-d64\fR VM Options .TP \fB\-compilejdk\fR: Compile all tests using specified JDK. If not specified, tests are compiled with the JDK used to run the tests. See also \fB\-jdk\fR. e.g. \fB\-jdk\fR:/usr/local/java/jdk1.5/solaris\-sparc .TP \fB\-cpa\fR: | \fB\-classpathappend\fR: Append the provided classPath to the CLASSPATH of every test. This is designed to be used primarily for tests which require non\-core JDK functionality. For example, to test Swing, which is not part of core JDK1.1, the following addition to the the CLASSPATH would be necessary: \fB\-cpa\fR:/usr/local/java/swing\-1.0.3/swingall.jar .TP \fB\-D\fR= Define a system property .HP \fB\-enableassertions\fR | \fB\-enableassertions\fR:* | \fB\-ea\fR | \fB\-ea\fR:* | \fB\-disableassertions\fR | .TP \fB\-disableassertions\fR:* | \fB\-da\fR | \fB\-da\fR:* Enable or disable assertions .TP \fB\-enablesystemassertions\fR | \fB\-esa\fR | \fB\-disablesystemassertions\fR | \fB\-dsa\fR Enable or disable system assertions .TP \fB\-javaagent\fR:<[=] Load Java programming language agent .TP \fB\-javacoption\fR: