Changes

Jump to navigation Jump to search
544 bytes added ,  16:17, 23 January 2015
no edit summary
Line 77: Line 77:  
</pre>
 
</pre>
    +
=== Options ===
 +
 +
Sometimes a test might need an option to work. E.g. a file or directory to work with or some string to operate on. This can be done by declaring the options.
 +
<pre>
 +
TEST_OPTION(name, type, description);
 +
</pre>
 +
 +
The ''name'' is some name for the option. The variable of the same name should be declared and the ''--$name'' CLI argument would be passed upon test start.
 +
 +
The ''type'' is data type. Currently supported types are ''string'', ''bool'', ''int'', ''uint'', ''long'' and ''ulong''.
 +
 +
Description is just arbitrary text.
    
== Adding test to automatic suite ==
 
== Adding test to automatic suite ==
    
[[Category: Development]]
 
[[Category: Development]]

Navigation menu