You can use an existing work directory as a template to create a new work directory for the test run.
When creating a new work directory for the test run, include the commands in the following sequence:
.ts
).wd
).wd
).jti
)runtests
command.The results of the test run are then written to the new work directory.
If you routinely use a set of commands to initialize and modify a configuration (such as a configuration template), you can include these in a command file.
Refer to Using Command Files for detailed information about creating and using command files.
The harness uses the work directory (testrun.wd
)
created by the command line when the tests are run, even if myconfig.jti
was
created using another work directory.
If you run the following examples, replace mytestsuite.ts
, myworkdir.wd
, and myconfig.jti
with test suite, work directory, and .jti
names that exist on your system.
> jtharness -testsuite
mytestsuite.ts -workdir
myworkdir.wd -create
testrun.wd -open
myconfig.jti -runtests
> jtharness "testsuite
mytestsuite.ts; workdir
myworkdir.wd; create
testrun.wd; open
myconfig.jti; runtests"
> jtharness @
mycmd.jtb runtests
In addition to any other commands, the mycmd.jtb
command
file must contain the following commands:
"
testsuite
mytestsuite.ts; workdir
myworkdir.wd; create
testrun.wd; open
myconfig.jti;
"
Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.