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
79061184
Commit
79061184
authored
Mar 21, 2017
by
Christian Brauner
Committed by
GitHub
Mar 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1482 from stgraber/master
tests: Support running on IPv6 networks
parents
f5c3ae59
09ef0838
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
lxc-test-apparmor-mount
src/tests/lxc-test-apparmor-mount
+4
-4
lxc-test-checkpoint-restore
src/tests/lxc-test-checkpoint-restore
+1
-1
lxc-test-ubuntu
src/tests/lxc-test-ubuntu
+6
-1
lxc-test-unpriv
src/tests/lxc-test-unpriv
+2
-2
No files found.
src/tests/lxc-test-apparmor-mount
View file @
79061184
...
...
@@ -167,7 +167,7 @@ if [ "x$profile" != "x${default_profile}" ]; then
echo
"FAIL: confined container was in profile
$profile
"
exit
1
fi
run_cmd lxc-stop
-n
$cname
run_cmd lxc-stop
-n
$cname
-k
echo
"test regular unconfined container"
echo
"lxc.aa_profile = unconfined"
>>
$HDIR
/.local/share/lxc/
$cname
/config
...
...
@@ -179,7 +179,7 @@ if [ "x$profile" != "xunconfined" ]; then
echo
"FAIL: unconfined container was in profile
$profile
"
exit
1
fi
run_cmd lxc-stop
-n
$cname
run_cmd lxc-stop
-n
$cname
-k
echo
"masking
$MOUNTSR
"
mount
--bind
$dnam
$MOUNTSR
...
...
@@ -209,7 +209,7 @@ if [ "x$profile" != "xunconfined" ]; then
echo
"FAIL: confined container was in profile
$profile
"
exit
1
fi
run_cmd lxc-stop
-n
$cname
run_cmd lxc-stop
-n
$cname
-k
echo
"testing override"
sed
-i
'/aa_profile/d'
$HDIR
/.local/share/lxc/
$cname
/config
...
...
@@ -226,6 +226,6 @@ if [ "x$profile" != "x${default_profile}" ]; then
echo
"FAIL: confined container was in profile
$profile
"
exit
1
fi
run_cmd lxc-stop
-n
$cname
run_cmd lxc-stop
-n
$cname
-k
DONE
=
1
src/tests/lxc-test-checkpoint-restore
View file @
79061184
...
...
@@ -48,5 +48,5 @@ lxc-checkpoint -n $name -v -s -D /tmp/checkpoint || FAIL "failed checkpointing"
lxc-wait
-n
$name
-s
STOPPED
lxc-checkpoint
-n
$name
-v
-r
-D
/tmp/checkpoint
||
FAIL
"failed restoring"
lxc-stop
-n
$name
-
t
1
lxc-stop
-n
$name
-
k
lxc-destroy
-f
-n
$name
src/tests/lxc-test-ubuntu
View file @
79061184
...
...
@@ -61,7 +61,12 @@ for template in ubuntu ubuntu-cloud; do
done
[
-n
"
$lxcip
"
]
||
FAIL
"to start networking in
$template
container"
ping
-c
1
$lxcip
||
FAIL
"to ping
$template
container"
if
echo
"
${
lxcip
}
"
|
grep
-q
":"
;
then
ping6
-c
1
$lxcip
||
FAIL
"to ping
$template
container"
else
ping
-c
1
$lxcip
||
FAIL
"to ping
$template
container"
fi
# Check apparmor
lxcpid
=
`
lxc-info
-n
$name
-p
-H
`
aa
=
`
cat
/proc/
$lxcpid
/attr/current
`
...
...
src/tests/lxc-test-unpriv
View file @
79061184
...
...
@@ -185,7 +185,7 @@ for count in `seq 1 2`; do
run_cmd lxc-info
-n
c1
run_cmd lxc-attach
-n
c1
--
/bin/true
run_cmd lxc-stop
-n
c1
run_cmd lxc-stop
-n
c1
-k
done
run_cmd lxc-copy
-s
-n
c1
-N
c2
...
...
@@ -193,7 +193,7 @@ run_cmd lxc-start -n c2 -d
p1
=
$(
run_cmd lxc-info
-n
c2
-p
-H
)
[
"
$p1
"
!=
"-1"
]
||
{
echo
"Failed to start container c2"
;
false
;
}
run_cmd lxc-stop
-n
c2
run_cmd lxc-stop
-n
c2
-k
if
which cgm
>
/dev/null 2>&1
;
then
echo
"Testing containers under different cgroups per subsystem"
...
...
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