summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0049huge_0
blob: 2791249512b6d7e13282dc5ab9c056f21fd84cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# let's try to exceed transaction buffer space

$NFT flush ruleset
$NFT add table inet test
$NFT add chain inet test c

RULE_COUNT=3000
RULESET=$(
for ((i = 0; i < ${RULE_COUNT}; i++)); do
	echo "add rule inet test c accept comment rule$i"
done
)
test $($NFT -e -a -f - <<< "$RULESET" |grep "#[ ]\+handle[ ]\+[0-9]\+" |wc -l) -eq ${RULE_COUNT} || exit 1