02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

bspVal<br />

NAME<br />

SYNOPSIS<br />

DESCRIPTION<br />

bspVal – shell script to configure and run <strong>BSP</strong> Validation Test Suite<br />

bspVal [-h] [-all] [-r] [-c] serverID -b bspName<br />

[-s secondServerID] [-sb secondBspname]<br />

[-t1SerDev T1SerialDevice] [-t1SerBaud T1SerialBaud]<br />

[-t2SerDev T2SerialiDevice] [-t2SerBaud T2SerialBaud]<br />

[testName ... ] "<br />

This script provides the high-level user interface to the <strong>BSP</strong> Validation Test Suite (VTS).<br />

After initializing the environment required for the test, this script executes a Tcl script that<br />

runs the specified <strong>BSP</strong> test, testName, on the target. To run all possible tests, use the -all<br />

option.<br />

This VTS is designed to use the host-based windsh to run the tests. Internally, these tests<br />

use a combination of windsh commands and WTX Tcl API calls. This allows the same<br />

scripts to run under UNIX and as well as Windows. Also referenced is a specialized set of<br />

functions that the tests use to access host serial ports for target/console interaction. See<br />

the Tornado API <strong>Guide</strong>, for information on the WTX protocol functions and WTX Tcl API.<br />

NOTE: The target has to be connected with a target server by some type of WDB<br />

connection to run VTS. Please refer to Tornado manuals for different types of WDB<br />

connection if the target does not support ethernet connectivity, the default connection.<br />

NOTE: VTS can also run on targets booting VxWorks ROM images but the target has to<br />

be connected to a target server. If the target is booting a VxWorks ROM image, certain<br />

tests (like bootline) that require the VxWorks boot prompt will fail.<br />

Under UNIX, this script can be directly invoked from the command line. Under Windows,<br />

you must first invoke bash:<br />

1. Change directories to:<br />

windbasehost+<br />

Where windbase is the directory pointed to by the WIND_BASE environment<br />

variable.<br />

2. Edit bashrc.bspVal to configure the Tornado environment. (The instructions are in<br />

the file.)<br />

3. Invoke the bash shell:<br />

bash -rcfile bashrc.bspVal<br />

After the bash shell responds with a prompt (bash$), type in the bspVal command<br />

exactly as you would on a UNIX host (described below). For example:<br />

bash$ bspVal tgtSvr1 -b mv147 -s tgtSvr2 -sb mv147 -all<br />

366

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!