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

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


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

$ Correct test with variables
: hello

13 14 15 16

# Variables can also be used in test expressions

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

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