SunVTS 3.0 Test Reference Manual

sptest Command Line Syntax

/opt/SUNWvts/bin/sptest standard_arguments -o dev=device_name,porta=first_port_name,T=port,L=loopback_type,M=mode,D=data_pattern,AB=async_baudrate,BS=async_write_size,S=async_total_size,PAR=parity,F=flow_control,B=sync_speed,DP=sync_drop_tolreance,P=sync_timeout

Table 34-5 sptest Command Line Syntax

Argument 

Explanation 

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.

M=mode

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

  • asynch

  • synch

  • both

T=test_type

Specifies the type of test to run:

o a= runs the test on port a.

o b= runs the test on port b.

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

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

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

L=test_loopback

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

D=data_pattern

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

  • Random

  • Sequential

  • Alphanumeric

  • 0x00-0xFF

AB=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.  

BS=write_size

Asynchronous mode write size; from 1 to 10000 bytes. 

S=size

Asynchronous mode total number of bytes to write. 

1 to 10000 bytes. 

PAR=parity

Asynchronous mode parity type: 

  • None

  • Even

  • Odd

F=flow_control and default

Asynchronous mode flow control 

  • Hardware (RTS/CTS)

  • Software (xon/xoff)

  • None

B=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=drop_tolerance

Synchronous mode drop packet tolerance (default=20 percent) 

P=poll_seconds

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".