Specifying Exclude Lists With excludeList

Test suites can supply exclude list files which contain the list of tests that the harness is not required to run. Exclude list files conventionally use a .jtx extension. Once you have set up a configuration, you can use an excludeList command to specify the exclude list for your test run:

> jtharness ... [initial-setup-commands] ... -excludeList path/filename ... [task-command] ...

The -excludeList path/filename command can be used multiple times to specify multiple exclude lists for a test run.

See About the Command-Line Examples for a description of the use of > jtharness.

See Command-Line Overview for a detailed description of the command-line structure.

The exclude list that you specify in the command line overrides any exclude list specified in the configuration file without changing the configuration file. To specify an exclude list, include the commands in the following sequence:

  1. Include the commands required to set up a configuration.

See Setup Commands for a description of the commands.

  1. Include the commands to specify an exclude list ( excludeList path/filename).
  2. (Optional) Include a task command (such as runtests).

See Task Commands for the commands that you can include.

Detailed Example of excludeList Command

In the following example, myconfig.jti and myexcludelist.jtx represent file names that might exist on your system.

Command Options Format Example:

> jtharness -config myconfig.jti -exclude myexcludelist.jtx -runtests

See Formatting a Command for descriptions and examples of other command formats that you can use.


Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.