Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
5ecedb89
Commit
5ecedb89
authored
Oct 09, 2014
by
Serge Hallyn
Committed by
Stéphane Graber
Nov 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-test-unpriv: test for different cgroups per subsystem
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
454c0165
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
lxc-test-unpriv
src/tests/lxc-test-unpriv
+18
-0
No files found.
src/tests/lxc-test-unpriv
View file @
5ecedb89
...
...
@@ -141,4 +141,22 @@ p1=$(run_cmd lxc-info -n c2 -p -H)
run_cmd lxc-stop
-n
c2
if
which cgm
>
/dev/null 2>&1
;
then
echo
"Testing containers under different cgroups per subsystem"
run_cmd cgm create freezer x1/x2
cgm movepid freezer x1
$$
run_cmd lxc-start
-n
c1
-d
p1
=
$(
run_cmd lxc-info
-n
c1
-p
-H
)
[
"
$p1
"
!=
"-1"
]
||
{
echo
"Failed to start container c1"
;
false
;
}
run_cmd lxc-info
-n
c1
run_cmd lxc-attach
-n
c1
--
/bin/true
run_cmd lxc-cgroup
-n
c1 freezer.state
echo
"Testing lxc-attach and lxc-cgroup from different cgroup"
cgm movepid freezer x2
$$
run_cmd lxc-attach
-n
c1
--
/bin/true
run_cmd lxc-cgroup
-n
c1 freezer.state
run_cmd lxc-cgroup
-n
c1 memory.limit_in_bytes
fi
DONE
=
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment