02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7<br />

Validation Testing<br />

scsi<br />

Requires that VxWorks image and pkLib.o must be built with SCSI support<br />

included. For most <strong>BSP</strong>s, you can do this by defining INCLUDE_SCSI.<br />

busTas<br />

Requires that the VxWorks image for both targets include shared memory<br />

components. Define the following macros:<br />

– INCLUDE_SM_NET<br />

– INCLUDE_SM_SEQ_ADDR<br />

– INCLUDE_SM_NET_SHOW<br />

Also, the VxWorks image for one target should define SM_OFF_BOARD as<br />

TRUE, and the other as FALSE.<br />

For more information, see the test descriptions in J. <strong>BSP</strong> Validation Test Suite<br />

Reference Entries.<br />

7<br />

Configuring the <strong>BSP</strong> VTS<br />

The <strong>BSP</strong> VTS is configurable through several parameters implemented as shell<br />

environment variables. All of these parameters are defined in configuration files<br />

(explained below), with one exception. The optional environment variable<br />

TEST_LOG_FILE provides a means for the user to specify where the <strong>BSP</strong> VTS test<br />

logs should be saved. Use the appropriate shell command to set this variable to the<br />

filename (including a full path) to which the test results should be logged. When<br />

this variable is not set, the tests are logged to<br />

target/config/bspname/vtsLogs/bspValidationLog.PID. In either case, the screen<br />

output is copied to the same location as the log file, and is named the same as the<br />

log file with _screenDump appended to the filename.<br />

The configuration parameters that control the behavior of the <strong>BSP</strong> VTS on a single<br />

target reside in the host/resource/test/bspVal/bspName.T1 file. If a test requires two<br />

targets, the host/resource/test/bspVal/bspName.T2 file supplies the parameters for<br />

the second target. 3<br />

These parameters include the path to the VxWorks image to be booted, the<br />

characteristics of the host and target, and the details of how the test should<br />

proceed. Many of the parameters are optional or have default values that are<br />

reasonable in most situations. Some of the parameters are applicable only to<br />

3. When creating a bspname.T1 or bspname.T2 file, you can copy the mv147.T1 and mv147.T2<br />

files and edit the copies as needed.<br />

149

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

Saved successfully!

Ooh no, something went wrong!