2019-05-05 22:00:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
2019-05-12 05:57:10 +02:00
|
|
|
set -u
|
|
|
|
|
|
|
|
REPO_ROOT=${REPO_ROOT:-$(pwd)}
|
2019-05-05 22:00:38 +02:00
|
|
|
|
2020-06-25 02:46:21 +02:00
|
|
|
sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted universe multiverse' >>/etc/apt/sources.list"
|
2019-05-08 23:23:55 +02:00
|
|
|
sudo apt-get update -y
|
|
|
|
sudo apt-get build-dep systemd -y
|
2019-07-08 21:28:10 +02:00
|
|
|
sudo apt-get install -y ninja-build python3-pip python3-setuptools quota
|
2019-12-17 19:19:02 +01:00
|
|
|
# The following should be dropped when debian packaging has been updated to include them
|
2019-11-20 23:34:21 +01:00
|
|
|
sudo apt-get install -y libfdisk-dev libp11-kit-dev libssl-dev libpwquality-dev
|
2020-01-25 17:48:23 +01:00
|
|
|
pip3 install meson
|
2019-05-08 23:23:55 +02:00
|
|
|
|
2019-05-05 22:00:38 +02:00
|
|
|
cd $REPO_ROOT
|
2019-05-14 13:47:56 +02:00
|
|
|
export PATH="$HOME/.local/bin/:$PATH"
|
2019-05-08 23:23:55 +02:00
|
|
|
tools/oss-fuzz.sh
|
2020-02-17 23:54:42 +01:00
|
|
|
./out/fuzz-unit-file -max_total_time=5
|
2019-05-08 23:23:55 +02:00
|
|
|
git clean -dxff
|