File: tester.test

package info (click to toggle)
quilt 0.69-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,052 kB
  • sloc: sh: 6,071; perl: 1,273; lisp: 522; makefile: 442
file content (25 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (7)
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