Technical data
8. Documentation for Developers
Communication with the User: warning, error, fatal_error
Using these three functions users may be warned, signalized an errors or stop the test imme-
diately. The syntax is as follows:
• warning "text"
• error "text"
• fatal_error "text"
All strings passed to these funtions are subject of variable substitution (Page 300).
Assignments
If for any reason a temporary variable is required it can be created by “set var [= value]”.
The variable can not be a configuration variable!
3
If you omit the “= value” part the variable
is simply set to “yes” so it may be tested in an if-statement. If an assignment part is given,
anything may be specified after the equal sign: normal variables, indexed variables, numbers,
strings and version numbers.
Please note that by the assignment also the type of the temporary variable is defined. If
a number is assigned mkfli4l “remembers” that the variable contains a number and later on
allows calculations with it. Trying to do calculations with variables of other types will fail.
Example:
set i=1 # OK, i is a numeric variable
set j=i+1 # OK, j is a numeric variable and contains the value 2
set i="1" # OK, i now is a string variable
set j=i+1 # Error "You can't use a non-numeric ID in a numeric
# context. Check type of operand."
# --> no calculations with strings!
You may also define temporary arrays (see below). Example:
set prim_%[1]=2
set prim_%[2]=3
set prim_%[3]=5
warning "${prim_n}"
The number of array elements is kept by mkfli4l in the variable prim_n. The code above
hence leads to the following output:
Warning: 3
If the right side of an assignment is a string constant, it is subject of variable substitution
(Page 300) at the time of assignment. The following example demonstrates this. The code:
3
This is a desired restriction: Check scripts are not able to change the user configuration.
303










