Debian Codegraph @

tests/shell/testcases/include/glob_duplicated_include

raw
1 #!/bin/bash
2
3 set -e
4
5 trap "rm -rf $tmpdir" EXIT
6
7 tmpdir=$(mktemp -d)
8 mkdir -p $tmpdir/test/include
9 cat > $tmpdir/test/main << EOF
10 table inet test {
11 chain test {
12 include "include/*";
13 }
14 }
15 EOF
16 echo "tcp dport 22 accept;" > $tmpdir/test/include/one
17 echo "tcp dport 25 accept;" > $tmpdir/test/include/two
18
19 $NFT -I $tmpdir/test/ -f $tmpdir/test/main