summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/include/glob_duplicated_include
blob: 4507f5d937e0c1104450331ad715dd40ecbd531e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -e

trap "rm -rf $tmpdir" EXIT

tmpdir=$(mktemp -d)
mkdir -p $tmpdir/test/include
cat > $tmpdir/test/main << EOF
table inet test {
        chain test {
                include "include/*";
        }
}
EOF
echo "tcp dport 22 accept;" > $tmpdir/test/include/one
echo "tcp dport 25 accept;" > $tmpdir/test/include/two

$NFT -I $tmpdir/test/ -f $tmpdir/test/main