SourceForge.net Logo
prevtopnext
izh_test
    Kinds of tests
        test_script - Sequence of simple test actions
exec - Execution of external program

Test command allows launching external programs from command line.

Full specification of the command looks like:
<exec>
  <cmd>command line for test</cmd>
  <out>test result base path</out>
  <in>name of file to send to input</in>
  <input>text to send to input</input>
</exec>
Where:
cmd

Command line to launch tested program.

izh_test adds nothing to the command line when launch the program (except substitution of variables) from arbitrary place in the file system.

So you have to use absolute path to the launched file or use the system substitution variable %test_dir% , which is replaced by the path to the directory with file-description of the test.

out

Base file name for "test file result".

Usually this file name has an extension.

If the file name looks like [name].[last_extension] then name of the result file will be [name].result.[last_extension].

Before using of this file name izh_test adds path to the directory with file description of the test to it so you don't have to use %test_dir% .

in

Name of file. Its content will be sent to the standard input stream of the tested program.

If fields in and input (see below) are empty then izh_test will send nothing to the standard input stream of the tested program.

Before using of this file name izh_test adds path to the directory with file description of the test to it so you don't have to use %test_dir% .

input

Text which will be sent to the standard input stream of the tested program.

This field is used only if field in (see previous definition) is empty.

Otherwise (field in contains name of file with data), izh_test will send content of file with name in but content of field input will be ignored.

If fields in and input (see above) are empty then izh_test will send nothing to the standard input stream of the tested program.

This test command checks nothing and doesn't return any result but its output can be stored.

For example stored result file can be normalized by another program and after that it can be checked by test command check .


prevtopnext

SourceForge.net Logo