Software Distributor Administration Guide for HP-UX 11i

Using Control Scripts
Testing Control Scripts
Chapter 11404
2. Run swremove to remove the configured product.
After the unconfiguration and removal completes, check the
${SW_ROOT_DIRECTORY}var/adm/sw/swagent.log file for any
problems, either in the unconfigure script or the format/contents
of the messages generated by it.
Study the resulting file system to see if the unconfigure script
performed the expected “undo” actions.
3. Run swinstall to install the full product again. Set the
defer_configure option to “false” to avoid executing the configure
scripts.
After the installation completes, run swconfig to configure your
product.
Study the resulting file system to see if the configure script
performed the expected actions.
Test the product itself to see if the necessary configuration tasks
were performed such that the product is ready to use.
Now run swconfig -u to unconfigure your product.
Study the resulting file system to see if the unconfigure script
performed the expected “undo” actions.
Run swconfig again to re-configure your product.
Study the resulting file system to see if the configure script
performed the expected actions.
4. Run swverify to execute the verify script(s).
After the verification completes, check the
${SW_ROOT_DIRECTORY}var/adm/sw/swagent.log file for any
problems, either in the verify script or the format/contents of the
messages generated by it.
5. If a previous version of the product can be updated to this version,
then re-run the first test by updating this product to a system where
the previous version has been installed and configured.
6. Note that configure and unconfigure scripts are never run unless the
${SW_ROOT_DIRECTORY} is /. However, verify scripts are run in both
cases.