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 />

Table 7-2<br />

Validation Test Suite Configuration Parameters: Target-Specific Parameters (Continued)<br />

Parameter Default Description<br />

T1_TMO_SLICES 4 Timestamp test measurements intervals. See<br />

timestamp.tcl.<br />

T1_TMO_TIMESTAMP 300 Duration of timestamp timer test (in seconds). See<br />

timestamp.tcl.<br />

T1_TMO_SCSI 3600 Timeout for testing SCSI (in seconds). See scsi.tcl.<br />

{T1, T2}_TMO_BOOT 60 Timeout for booting VxWorks (in seconds).<br />

7<br />

T2_UDP_TRANS 5000 Number of UDP packets to send. See network.tcl.<br />

7.4 Running the <strong>BSP</strong> VTS<br />

Each test in the <strong>BSP</strong> VTS exercises one or more of the basic <strong>BSP</strong> functions. For the<br />

most part, the source for these tests (implemented as Tcl/WTX scripts) is contained<br />

in the host/src/test/bspVal/src/tests directory. However, if a procedure is shared by<br />

a number of tests, that code is stored in the host/src/test/bspVal/src/lib directory.<br />

These shared procedures handle things such as booting VxWorks, reporting<br />

PASS/FAIL results, and so forth.<br />

For example, <strong>BSP</strong> VTS tests for the system clock and the auxiliary clock are stored<br />

in the files tests/sysClock.tcl and tests/auxClock.tcl. Both of these files call<br />

procedures in lib/clockLib.tcl. In addition, many <strong>BSP</strong> tests use functions within<br />

target/src/test/bspVal/pkLib.c, a library of C functions that execute on the<br />

VxWorks target (although the host retains control of the progression of tests).<br />

These C functions serve as low-level support routines.<br />

7.4.1 Starting the <strong>BSP</strong> VTS<br />

The <strong>BSP</strong> VTS runs from either a Windows or a UNIX host. After starting a bash<br />

shell, running the <strong>BSP</strong> VTS from a Windows host is almost exactly the same as<br />

running it from a UNIX host.<br />

153

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

Saved successfully!

Ooh no, something went wrong!