From: Pablo Neira Ayuso Date: Wed, 19 Sep 2012 23:33:43 +0000 (+0200) Subject: extensions: libxt_nfacct: add unit test X-Git-Tag: v1.6.0~77^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cdb4411273d2b35678a464199c019d522148075;p=thirdparty%2Fiptables.git extensions: libxt_nfacct: add unit test Signed-off-by: Pablo Neira Ayuso --- diff --git a/extensions/libxt_nfacct.t b/extensions/libxt_nfacct.t new file mode 100644 index 00000000..3419b4ce --- /dev/null +++ b/extensions/libxt_nfacct.t @@ -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