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
b94e8142
Unverified
Commit
b94e8142
authored
Apr 26, 2021
by
Evgeny Vereshchagin
Committed by
Christian Brauner
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: run the fuzzers along with the other tests
Signed-off-by:
Evgeny Vereshchagin
<
evvers@ya.ru
>
parent
a913759e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
Makefile.am
src/tests/Makefile.am
+2
-0
lxc-test-fuzzers
src/tests/lxc-test-fuzzers
+25
-0
No files found.
src/tests/Makefile.am
View file @
b94e8142
...
...
@@ -811,6 +811,8 @@ fuzz_lxc_define_load_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
bin_PROGRAMS
+=
fuzz-lxc-config-read
\
fuzz-lxc-define-load
bin_SCRIPTS
+=
lxc-test-fuzzers
endif
endif
...
...
src/tests/lxc-test-fuzzers
0 → 100755
View file @
b94e8142
#!/bin/bash
set
-eux
set
-o
pipefail
TMP_DIR
=
`
mktemp
-d
`
export
ASAN_OPTIONS
=
${
ASAN_OPTIONS
:-
detect_stack_use_after_return
=1
:check_initialization_order
=1
:strict_init_order
=1
:strict_string_checks
=1
}
export
UBSAN_OPTIONS
=
${
UBSAN_OPTIONS
:-
print_stacktrace
=1
:print_summary
=1
:halt_on_error
=1
}
cleanup
()
{
rm
-rf
"
$TMP_DIR
"
}
trap
cleanup
exit
for
fuzzer
in
/usr/bin/fuzz-lxc-
*
;
do
name
=
$(
basename
"
$fuzzer
"
)
corpus_dir
=
"
$TMP_DIR
/
$name
"
mkdir
-p
"
$corpus_dir
"
if
wget
--directory-prefix
=
"
$TMP_DIR
"
https://storage.googleapis.com/lxc-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/lxc_
$name
/public.zip
;
then
unzip
-q
-d
"
$corpus_dir
"
"
$TMP_DIR
/public.zip"
fi
"
$fuzzer
"
-max_total_time
=
120
"
$corpus_dir
"
done
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