]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: libxt_nfacct: add unit test
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Sep 2012 23:33:43 +0000 (01:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Oct 2013 14:35:49 +0000 (16:35 +0200)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_nfacct.t [new file with mode: 0644]

diff --git a/extensions/libxt_nfacct.t b/extensions/libxt_nfacct.t
new file mode 100644 (file)
index 0000000..3419b4c
--- /dev/null
@@ -0,0 +1,10 @@
+:INPUT,FORWARD,OUTPUT
+@nfacct add test
+#
+# extra space in iptables-save output, fix it
+#
+# ERROR: cannot load: iptables -A INPUT -m nfacct --nfacct-name test
+#-m nfacct --nfacct-name test;=;OK
+-m nfacct --nfacct-name wrong;;FAIL
+-m nfacct;;FAIL
+@nfacct del test