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
5f850cf9
Commit
5f850cf9
authored
Apr 12, 2021
by
Evgeny Vereshchagin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: pass on ASAN/UBSAN options to several tests
to make it easier to run them under ASan/UBSan. Signed-off-by:
Evgeny Vereshchagin
<
evvers@ya.ru
>
parent
00f224bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
lxc-test-apparmor-mount
src/tests/lxc-test-apparmor-mount
+2
-1
lxc-test-unpriv
src/tests/lxc-test-unpriv
+2
-1
lxc-test-usernic.in
src/tests/lxc-test-usernic.in
+2
-1
lxc-test-usernsexec
src/tests/lxc-test-usernsexec
+1
-1
No files found.
src/tests/lxc-test-apparmor-mount
View file @
5f850cf9
...
...
@@ -48,7 +48,8 @@ FAIL() {
run_cmd
()
{
sudo
-i
-u
$TUSER
\
env
http_proxy
=
${
http_proxy
:-}
https_proxy
=
${
https_proxy
:-}
\
XDG_RUNTIME_DIR
=
/run/user/
$(
id
-u
$TUSER
)
$*
XDG_RUNTIME_DIR
=
/run/user/
$(
id
-u
$TUSER
)
ASAN_OPTIONS
=
${
ASAN_OPTIONS
:-}
\
UBSAN_OPTIONS
=
${
UBSAN_OPTIONS
:-}
$*
}
DONE
=
0
...
...
src/tests/lxc-test-unpriv
View file @
5f850cf9
...
...
@@ -94,7 +94,8 @@ cleanup() {
run_cmd
()
{
sudo
-i
-u
$TUSER
\
env
http_proxy
=
${
http_proxy
:-}
https_proxy
=
${
https_proxy
:-}
\
XDG_RUNTIME_DIR
=
/run/user/
$(
id
-u
$TUSER
)
$*
XDG_RUNTIME_DIR
=
/run/user/
$(
id
-u
$TUSER
)
ASAN_OPTIONS
=
${
ASAN_OPTIONS
:-}
\
UBSAN_OPTIONS
=
${
UBSAN_OPTIONS
:-}
$*
}
# create a test user
...
...
src/tests/lxc-test-usernic.in
View file @
5f850cf9
...
...
@@ -60,7 +60,8 @@ cleanup() {
run_cmd
()
{
sudo
-i
-u
usernic-user
\
env
http_proxy
=
${
http_proxy
:-}
https_proxy
=
${
https_proxy
:-}
\
XDG_RUNTIME_DIR
=
/run/user/
$(
id
-u
usernic-user
)
$*
XDG_RUNTIME_DIR
=
/run/user/
$(
id
-u
usernic-user
)
ASAN_OPTIONS
=
${
ASAN_OPTIONS
:-}
\
UBSAN_OPTIONS
=
${
UBSAN_OPTIONS
:-}
$*
}
ARCH
=
i386
...
...
src/tests/lxc-test-usernsexec
View file @
5f850cf9
...
...
@@ -292,7 +292,7 @@ setup_and_run() {
fi
debug 0
"as
$asuser
executing
${
MYPATH
}
${
pt_args
[*]
}
"
sudo
-Hu
"
$asuser
"
"
${
MYPATH
}
"
"
${
pt_args
[@]
}
"
sudo
-Hu
"
$asuser
"
ASAN_OPTIONS
=
${
ASAN_OPTIONS
:-}
UBSAN_OPTIONS
=
${
UBSAN_OPTIONS
:-}
"
${
MYPATH
}
"
"
${
pt_args
[@]
}
"
}
USERNSEXEC
=
${
USERNSEXEC
:-
lxc
-usernsexec
}
...
...
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