diff options
author | Tejun Heo <tj@kernel.org> | 2015-12-28 16:41:20 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-01-03 20:59:49 +0100 |
commit | 33834092f128834fd3abd96f88a2df30c731575a (patch) | |
tree | c6db8b3b63031dbc3219637943f913d881f24728 /extensions/libxt_cgroup.t | |
parent | 5d359b97a59f27d4bace5a43695c1fed37e61bd9 (diff) |
extensions: libxt_cgroup: add unit test
Add basic tests which depend only on the root cgroup.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libxt_cgroup.t')
-rw-r--r-- | extensions/libxt_cgroup.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/libxt_cgroup.t b/extensions/libxt_cgroup.t new file mode 100644 index 00000000..72c8e377 --- /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 |