variables.should 541 Bytes
Newer Older
1
!OPTIONS: @demo/variables.cfg --var DATA=hello
2 3 4 5

# Variables can be defined through options in the command line,
# with a configuration file or within a `!OPTIONS` directive.

6
# $DATA should be here 'hello', overriding what may be in the configuration file.
7

8
# Variables can be used in test commands
9 10 11 12 13
echo $DATA

$ Correct test with variables
: hello

14 15 16 17

# Variables can also be used in test expressions

$ Variable in text expression given through !OPTIONS
18
1: $DATA
19 20

$ Variable in text expression given through a configuration file
21
w2: $LETTER