02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

set cpuNum [lindex [lindex $tsInfo 2] 0]<br />

return $cpuNum<br />

}<br />

########################################################################<br />

#<br />

# main - command to execute at wtxtcl startup<br />

#<br />

puts stdout [cpuNumGet $argv]<br />

Then launch wtxtcl with the file name as argument and the target server name as the<br />

argument to myWtxTcl.tcl<br />

wtxtcl myWtxTcl.tcl<br />

-1<br />

wtxtcl myWtxTcl.tcl vxsim0<br />

61<br />

SEE ALSO<br />

WTX entry in the online <strong>Tornado</strong> API Reference, <strong>Tornado</strong> API Programmer’s Guide: The WTX<br />

Protocol, <strong>Tornado</strong> User’s Guide<br />

wtxTest<br />

NAME<br />

DESCRIPTION<br />

r – Tcl script, wtxtcl test suite launcher<br />

This tool thoroughly checks each WTX (Wind River Tool Exchange) protocol service.<br />

Several unit tests test various features of the WTX services. This test tool, based on<br />

exclusively Tcl scripts is a convenient way to run the WTX services test suite from the<br />

UNIX shell.<br />

When started, the test tool needs to connect to a specified target server (see tgtsvr) whose<br />

identifier is given as a required parameter. It is possible to use a regular expression for the<br />

server identifier. For example, the following will run all the tests on vxsim1@aven:<br />

aven% tclsh wtxtest.tcl sim1<br />

If there is an ambiguity in your target server name, an error message is displayed.<br />

The testName parameter is optional. If omitted, the test tool will apply all tests in the test<br />

suite (use the -l option to see the list of tests). It is possible to run a subset of tests by using<br />

a glob-style expression. For example, the following will run all the memory tests:<br />

aven% tclsh wtxtest.tcl vxsim1@aven Mem<br />

The following will run all the context and event tests:<br />

aven% tclsh wtxtest.tcl vxsim1@aven Cont Eve<br />

434

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

Saved successfully!

Ooh no, something went wrong!