How to Create the Test Request File
- Log on to the test server as user
scate.
- Run the
smokerun utility from the test server to create a test request file.
$ /usr/scate/tset/bin/smokerun
The following is a sample screenshot of a smokerun invocation.
Name of a cluster node ? [phys-foo-1] pono1
Obtaining cluster configuration information from node pono1...
Specify Test Results Log Directory that is NFS exported and world writable.
Ex : /home/username/log (or) /net/machine/export/home/log
Test Results Log Directory? /home/mytest/scate_logs
Test Request Filename ? [/home/mytest/scate_logs/TestRequest/testrequest1.out]
-------------
Test Category
-------------
1. Smoke Tests for HA Communication Infrastructure
2. Smoke Tests for HA Services
Enter the number that corresponds to the tests you want to run.
To select more than one option, Enter a comma seperated list.
Enter your selection : 2
1. Failover Services
2. Scalable Services
3. Private Interconnect
4. Non-global Zone
Enter the number that corresponds to the test you want to run.
To select more than one test, you can either enter a comma
seperated list (1,2,3...) or specify a range (1-3) or
enter "all" to run all the tests.
Enter your selection : 1
***** Generating Entry for Failover Services *****
Some tests you selected require information about Network Hostname.
Please enter the hostname to be used for configuring Logical Host and Shared Address resource :ono-1
Getting node list from the cluster...
Please enter comma seperated node list on which "ono-1" will be hosted [pono1,pono2] : Return
Validating the Network hostname...
Getting the "NetIfList"(IPMP group info). Please wait...
********************************************************************************
Tests require one global raw device. Device Name should be of the form
/dev/md/foo-1/rdsk/dx for SVM or /dev/global/rdsk/dxsy for a H/W RAID device.
The device should NOT be mounted either globally or locally on any cluster node.
Also, the device should NOT be mounted at boot thru /etc/vfstab. If the device
is present in /etc/vfstab, set 'mount at boot' field to 'no' on all the nodes.
********************************************************************************
Enter the raw disk slice(s) and end the list with a blank line.
Disk name? /dev/md/ono-1/rdsk/d0
Disk name? Return
You selected 1 disks
Raw Disk 1 = /dev/md/ono-1/rdsk/d0
Is this correct? [y/n] ? y
You selected 1 disks
Raw Disk 1 = /dev/md/ono-1/rdsk/d0
Test Request File is in /home/mytest/scate_logs/TestRequest/testrequest1.out
Run the tests using smokerun -f /home/mytest/scate_logs/TestRequest/testrequest1.out
The following is an example test request file for Smoke Failover Services testing:
# SCATE Test Request File
# Generated: n1c33 Thu May 22 07:34:20 PDT 2008
LOGDIR=/home/mytest/scate_logs
CLUSTER
NODENAME=pono1
END
# Smoke - Failover Services
REQUEST cti
SEQUENCE=sanity
SCENARIO=failover
#SCENARIO=tc_mytest
#TEST_NUMBER="{1}"
#TEST_NUMBER="{1-3,5}"
#TEST_NUMBER=all
RUN_NEWCLI=TRUE
NETWORK_HOSTNAME_1=ono-1
NETWORK_HOSTNAME_ADAPTERS_1="sc_ipmp0@1,sc_ipmp0@2"
NETWORK_HOSTNAME_HOSTS_1=pono1,pono2
NETWORK_HOSTNAME_TYPE_1=0
RAW_DISK_1=/dev/md/ono-1/rdsk/d0
FS_TYPE=ufs
END
How to Run the Smoke Test
The test request file is created under the log directory that is passed
to the smokerun utility. In the previous example, the test request file name is
/home/mytest/scate_logs/TestRequest/testrequest1.out. To run the test suite, invoke the
following command on the test server as user scate.
$ /usr/scate/svc/bin/smokerun -f /path/testrequestfile
Example:
$ /usr/scate/svc/bin/smokerun -f /home/mytest/scate_logs/TestRequest/testrequest1.out
Executing the tests in /home/mytest/scate_logs/TestRequest/testrequest1.out...
Info: (From Server) Host is rsh'able.
Operation Success: (From Server) Job ID is 1
Operation Success: (From Server) Log directory is /home/mytest/scate_logs/05-22-08_09.57.48_pono1_1