VxWorks BSP Developer's Reference : VxWorks BSP Validation Test Suite

model

NAME

model - sysModel( ) test

SYNOPSIS

bspVal options model

DESCRIPTION

This test verifies that the target board matches the target configuration file. To do this, it verifies the return value of the sysModel( ) routine. This value is extracted from the target information stored at target server. The entire test should not take more than a few seconds to run. See bspVal.sh for an explanation of options.

This is the first test run if the -all option is specified for bspVal.

NOTE: This reference entry lists the most likely reason for this test's failure. However, it does not list all possible reasons.
The first (and only) test compares the return value of sysModel( ) to the string specified by T1_MODEL. If this test fails, check that the sysModel( ) routine in sysLib.c returns the correct target model information.

Barring serious hardware or software limitations (such as an identifiable VxWorks problem), the target board must pass all tests for the BSP to be validated.

CONFIGURATION PARAMETERS

T1_MODEL 20
Expected result of sysModel( ). (required)

EXAMPLE

Output consists of:

                         BSP VALIDATION TEST
                         -------------------

    Target server                     : t53-160 
    BSP                               : mv147
    Log file                          : /tmp/bspValidationLog.5219



    Model Test :
    sysModel() return value                                   : PASS

                       Tests RUN           1 
                       Tests PASSED        1  
                       Tests FAILED        0 
                       Tests SKIPPED       0 

SEE ALSO

bspVal.sh, bspPkCommonProc.tcl, envLib.tcl