summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0013defines_1
blob: b6330884986fc36598ada3961a5aac528e1a5e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Tests use of variable before definition.

set -e

RULESET="
define var2 = \$var1
define var1 = lo

table ip t {
	chain c {
		iif \$var2
	}
}"

$NFT -f - <<< "$RULESET" && exit 1
exit 0