| Solaris |
|
|
The Solaris Test Framework (STF) is a test harness - a collection of software that builds, configures, executes, unconfigures, cleans and packages tests in a standard way. STF provides the framework needed to develop and execute test suites for Solaris technology in a consistent manner.
To install the STF package, use the following command as super user:
# pkgadd -d <package location> SUNWstc-stf
Where <package location> refers to the path containing the SUNWstc-stf package directory. By default, STF is installed into the /opt/SUNWstc-stf directory.
It is recommended that you install the package from scratch, rather than on top of an existing installation. Thus, if an old version of the package is present use the following command as super user to remove the package:
# pkgrm SUNWstc-stf
If you need to create the STF package from the source code use the following steps:
% cd <workspace_path>/usr/src/tools/stf % make
% PATH=<workspace_path>/proto/tools/stf/bin/`uname -p`:$PATH % export PATH
The above example uses sh-compatible syntax.
% stf_build package
The binaries will be located in the proto area at: <workspace_path>/proto/tools/stf
The SUNWstc-stf package will be located at: <workspace_path>/packages/`uname -p`
To run STF-based test suites, follow these generic steps:
# pkgadd -d <package location> SUNWstc-stf # pkgadd -d <package location> SUNWstc-checkenv
# pkgadd -d <package location> SUNWstc-<pkgname>
% PATH=$PATH:/opt/SUNWstc-stf/bin/`uname -p` % export PATH
% stf_configure ... ... [many lines of output] ...
stf_configure prints progress messages on the invoking terminal. The results of stf_configure are placed in the directory /var/tmp/<test suite root>/config, where test suite root refers to the directory under which the test suite's STC.INFO file resides.
% stf_execute ... ... [many lines of output] ...
Results of test execution are placed in the directory /var/tmp/<test suite root>/results on the system on which stf_execute was run.
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.