mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 10:25:06 +03:00
tests: make fuzzbuzz.sh compatible with Azure Piplines
This commit is contained in:
parent
e5984b1d1b
commit
fa8ac5eb77
@ -2,6 +2,9 @@
|
||||
|
||||
set -e
|
||||
set -x
|
||||
set -u
|
||||
|
||||
REPO_ROOT=${REPO_ROOT:-$(pwd)}
|
||||
|
||||
cd $REPO_ROOT
|
||||
wget https://app.fuzzbuzz.io/releases/cli/latest/linux/fuzzbuzz
|
||||
@ -12,5 +15,8 @@ chmod +x fuzzbuzz
|
||||
git clone https://github.com/google/oss-fuzz /tmp/oss-fuzz
|
||||
cd /tmp/oss-fuzz
|
||||
sudo ./infra/helper.py pull_images
|
||||
sudo ./infra/helper.py build_fuzzers --clean --sanitizer=memory systemd $REPO_ROOT
|
||||
sudo ./infra/helper.py check_build --sanitizer=memory systemd
|
||||
|
||||
# helper.py is wrapped in script to trick it into thinking it's "interactive"
|
||||
# See https://github.com/systemd/systemd/pull/12542#issuecomment-491563572
|
||||
sudo script -e -c "./infra/helper.py build_fuzzers --clean --sanitizer=memory systemd $REPO_ROOT"
|
||||
sudo script -e -c "./infra/helper.py check_build --sanitizer=memory systemd"
|
||||
|
Loading…
Reference in New Issue
Block a user