<head></head><body><pre></font><font color="#ff0000"><i>################################################################################</font></i><font color=black>
</font><font color="#ff0000"><i># TEST:	kickoff</font></i><font color=black>
</font><font color="#ff0000"><i>################################################################################</font></i><font color=black>
</font><font color="#ff0000"><i># $Revision: 1.1 $</font></i><font color=black>
</font><font color="#ff0000"><i># $Author: drajovic $</font></i><font color=black>
</font><font color="#ff0000"><i># $Date: 2002/12/03 19:10:34 $</font></i><font color=black>
</font><font color="#ff0000"><i># $Source: d:/Archive/CVS_QS/EMOS/EMOS_FRM/WR/FRM/TPL/Scripts/kickoff_new_style/script,v $</font></i><font color=black>
</font><font color="#ff0000"><i># $NoKeywords: $</font></i><font color=black>
</font><font color="#ff0000"><i>################################################################################</font></i><font color=black>

</font><font color="#ff0000"><i>#</font></i><font color=black></font><font color="#ff0000"><i>/***
#* A simple driver for the complete test suite. All it does is specify some
#* suite table to be processed and calls the emos_frm_driver to do the rest.
#* If you need more sophisticated logic, do whatever you want and then call
#* the driver.
#*
#* The new driver invokes the new logic implanted into generic EMOS driver
#* which simplifies the test driver and finaly corrects a very subtle bug
#* that we had to live with for long time. The new driver logic now 
#* guarntees to return the corect return codes from all called functions
#* irrespectvely of the depth of the call chain. This feature is very
#* for proper test logging.
#*/</font></i><font color=black>

<b>static</b> <b>const</b> TEST_PATH = TEST_HOME;
<b>static</b> <b>const</b> DATA_PATH = DATA_HOME;
<b>static</b> <b>const</b> SUITE_HDR = </font><font color="#00bb00">"run?,driver,table,testset,description"</font><font color=black>;
<b>static</b> <b>const</b> SUITE_TABLE = </font><font color="#00bb00">"suite1.xls"</font><font color=black>; 

</font><font color="#ff0000"><i># during development use the following environment variable </font></i><font color=black>
</font><font color="#ff0000"><i># to redirect the suite to some temporary suite table</font></i><font color=black>

<b>static</b> table = getenv(</font><font color="#00bb00">"MY_SUITE"</font><font color=black>);

</font><font color="#ff0000"><i># activates the new driver logic</font></i><font color=black>

FRM_DRV_set_new_test_driver( TRUE );

</font><font color="#ff0000"><i># load your driver libraries here, in startup script or where you like it</font></i><font color=black>
</font><font color="#ff0000"><i># we prefer startup scrip if there are only a few drivers (which is usualy the case)</font></i><font color=black>
</font><font color="#ff0000"><i># we load them from kickoff scripts when there are plenty of drivers</font></i><font color=black>

reload( </font><font color="#00bb00">"DRV/drv1_lib"</font><font color=black>, 0, 0 );

</font><font color="#ff0000"><i># calls the generic test driver</font></i><font color=black>
wrlog_init_file_interface( getvar(</font><font color="#00bb00">"testname"</font><font color=black>), getenv(</font><font color="#00bb00">"USERNAME"</font><font color=black>), </font><font color="#00bb00">"txt"</font><font color=black> );
<b>call</b> </font><font color="#00bb00">"DRV/emos_testsuite_driver"</font><font color=black> ( TEST_PATH, DATA_PATH, (table==</font><font color="#00bb00">""</font><font color=black>? SUITE_TABLE : table), FALSE, SUITE_HDR );
wrlog_terminate_file_interface();


</pre></body>