7 REPO_ROOT
=${REPO_ROOT:-$(pwd)}
9 sudo bash
-c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' >>/etc/apt/sources.list"
10 sudo apt-get update
-y
11 sudo apt-get build-dep systemd
-y
12 sudo apt-get
install -y ninja-build python3-pip python3-setuptools
16 export PATH
="$HOME/.local/bin/:$PATH"
18 timeout
--preserve-status 5 .
/out
/fuzz-unit-file
21 wget https
://app.fuzzbuzz.io
/releases
/cli
/latest
/linux
/fuzzbuzz
24 .
/fuzzbuzz target
test fuzz-unit-file
--all
26 git clone https
://github.com
/google
/oss-fuzz
/tmp
/oss-fuzz
28 sudo .
/infra
/helper.py pull_images
30 # docker doesn't like colons in filenames so let's create a directory
31 # whose name can be consumed by the -v option.
32 # https://github.com/google/oss-fuzz/issues/2428
34 sudo mount
--bind "$REPO_ROOT" "$t"
36 # helper.py is wrapped in script to trick it into thinking it's "interactive"
37 # See https://github.com/systemd/systemd/pull/12542#issuecomment-491563572
38 sudo
script -e -c "./infra/helper.py build_fuzzers --clean --sanitizer=memory systemd $t"
39 sudo
script -e -c "./infra/helper.py check_build --sanitizer=memory -e ALLOWED_BROKEN_TARGETS_PERCENTAGE=0 systemd"