summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/comments_handles_0
blob: 30539bf0d760d263eeac3fe4027e42462bcbc9c8 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# handles and comments mix well

$NFT add table test
$NFT add chain test test
$NFT add rule test test tcp dport 22 counter accept comment test_comment
set -e
$NFT list table test -a | grep 'accept comment \"test_comment\" # handle '[[:digit:]]$ >/dev/null
$NFT list table test | grep 'accept comment \"test_comment\"' | grep -v '# handle '[[:digit:]]$ >/dev/null