SunVTS 5.0 User's Guide

Adding a Custom Test

Developers can add their own custom tests to the SunVTS environment. This book does not describe custom test development, but does list the tasks necessary to add a custom test into the SunVTS environment.

To Add a Custom Test
  1. Copy your custom test binary to the SunVTS bin directory based on the 32-bit or 64-bit functionality of your binary test:

    • 32-bit: /opt/SUNWvts/bin

    • 64-bit: /opt/SUNWvts/bin/sparcv9

  2. Modify one of the following .customtest files based on the 32-bit or 64-bit functionality of your binary test:

    • 32-bit: /opt/SUNWvts/bin/.customtest

    • 64-bit: /opt/SUNWvts/bin/sparcv9/.customtest

    The format of the .customtest file is described in "The .customtest File Format".

  3. Restart SunVTS or reprobe the system.

When invoked, SunVTS displays the custom test in the SunVTS user interface.

The .customtest File Format

The .customtest file defines the test options and the default option values for your custom test. The tester can change these options using the option dialog boxes through the SunVTS user interface. However, the Reset button returns the options to the default settings as defined in the .customtest file.

Each line in this file is made up of two or more fields that are separated by a semicolon where:

Examples:

SunVTS invokes the above test as follows:


% ./test_name -s[vq..] [-i n] 

-o dev=user[0,1..],Command_Line_Option=Value...

You cannot use the .customtest file when a test has a probe attached. You must ensure that the binaries are compatible with the version of the Solaris kernel on which SunVTS is currently running.


Note -

If .customtest is renamed as .customtest-group, all of the associated tests will appear under the specified group.