SunVTS 5.0 Test Reference Manual

sptest Command-Line Syntax

/opt/SUNWvts/bin/sptest standard_arguments -o dev=device_name, porta=port_name,T=test_type,L=loopback_type,M=mode,D=data_pattern, AB=async_baud_rate,S=async_data_size,par=none|even|odd,BS=1|10|100|1000 |3000|5000|10000,F=flow_control,B=sync_baud_rate,DP=sync_drop_tolerance, P=sync_poll_wait

Table 52-5 sptest Command-Line Syntax

Argument 

Description 

dev=device_name

Identifies the serial port(s) to test. There is no default value. You must specify a device name such as: 

  • se0,

  • zs0, zs1

  • zs2, zs3

  • ..., ...

porta=port_name

The name of the first device of a serial device pair. The default is a.

T=test_type

Specifies the type of test to run: 

  • a= runs the test on port a.

  • b= runs the test on port b.

  • a_b= runs the test on ports a and b sequentially.

  • a_b_concurrent= runs the test on port a and port b concurrently.

  • a_to_b= runs the test from port a to port b.

L=loopback_type

The type of loopback connector attached to ports: 

  • No_modem_a_to_b

  • Internal_a_to_a__b_to_b

  • Plug_a_to_a__b_to_b

  • Modem_a_to_b

M=mode

The default test mode is asynchronous. Specify one of the following modes: 

  • asynch

  • synch

  • both

D=data_pattern

Selects the data pattern to transfer. The user can select: 

  • Random

  • Sequential

  • Alphanumeric

  • 0x00-0xFF

AB=async_baud_rate

Asynchronous baud rate (default = 9600). The valid values are between 110 - 460800.

 

Note: Some platforms can only support asynchronous baud rates up to 38400 or 76800. For baud rates greater then 153600 the serial line drivers must be set for RS-423 mode and not RS-232 mode.  

S=async_data_size

Asynchronous mode total number of bytes to write; from 1 to 10000 bytes. 

par=none|even|odd

Parity used in the async loop test. Default value is none. 

BS=1|10|100|1000| 3000| 5000|10000

Number of bytes in each write during async loop test. Default value is 100. 

F=flow_control

Asynchronous mode flow control: 

  • Hardware (RTS/CTS)

  • Software (xon/xoff)

  • None

B=sync_baud_rate

Synchronous baud rate (default = 9600). The valid rates are between 110 - 256000.

 

Note: Some platforms can only support synchronous rates up to 38400 or 76800. For rates greater then 100000 the serial line drivers must be set for RS-423 mode and not RS-232 mode. 

DP=sync_drop_tolerance

Synchronous mode drop packet tolerance (default=20 percent). 

P=sync_poll_waitt

Synchronous mode additional wait time during poll (in seconds). 


Note -

64-bit tests are located in the sparcv9 subdirectory: /opt/SUNWvts/bin/sparcv9/testname. If a test is not present in this directory, then it may only be available as a 32-bit test. For more information refer to "32-Bit and 64-Bit Tests".