summaryrefslogtreecommitdiffstats
path: root/test/tester.test
blob: bc32e3283be26d2a7ed7802d12434041f7f065a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Test the testing code itself

# Exported variables should be available immediately after being set
$ echo %{VAR}
>
$ export VAR=foo
$ echo %{VAR}
> foo
$ export VAR=bar
$ echo %{VAR}
> bar

# Exported variables should survive accross commands and comments
$ true
$ echo %{VAR}
> bar

# Test multiple use cases
$ echo "A %{VAR}%{VAR}ian walks into a %{VAR}"
> A barbarian walks into a bar

# Test combined use and set
$ export PLACE=%{VAR}racks
$ echo %{PLACE}
> barracks