1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash # NFT_TEST_REQUIRES(NFT_TEST_HAVE_comment) EXPECTED='table ip test_table { chain test_chain { comment "test" } } ' set -e $NFT -f - <<< "$EXPECTED"