[PATCH iptables] extensions: libxt_cgroup: add unit test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add basic tests which depend only on the root cgroup.

Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
---
 extensions/libxt_cgroup.t |    8 ++++++++
 1 file changed, 8 insertions(+)

--- /dev/null
+++ b/extensions/libxt_cgroup.t
@@ -0,0 +1,8 @@
+:INPUT,OUTPUT,POSTROUTING
+*mangle
+-m cgroup --cgroup 1;=;OK
+-m cgroup ! --cgroup 1;=;OK
+-m cgroup --path "/";=;OK
+-m cgroup ! --path "/";=;OK
+-m cgroup --cgroup 1 --path "/";;FAIL
+-m cgroup ;;FAIL
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux