summaryrefslogtreecommitdiff
path: root/fuzzbuzz.yaml
blob: 18c70e3555323a9795f8d3f4589f551228a14cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
base: ubuntu:16.04
language: c
setup:
- sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' >>/etc/apt/sources.list"
- sudo apt-get update -y
- sudo apt-get build-dep -y systemd
- sudo apt-get install -y python3-pip
# FIXME: temporarily pin the meson version as 0.53 doesn't work with older
# python 3.5
# # See: https://github.com/mesonbuild/meson/issues/6427
#
- pip3 install meson==0.52.1 ninja
- export PATH="$HOME/.local/bin/:$PATH"
- CC=$FUZZ_CC CXX=$FUZZ_CXX meson -Dfuzzbuzz=true -Dfuzzbuzz-engine-dir=$(dirname "$FUZZ_ENGINE") -Dfuzzbuzz-engine=$(cut -d. -f1 <(basename "$FUZZ_ENGINE")) -Db_lundef=false ./build
- ninja -v -C ./build fuzzers
environment:
targets:
- name: fuzz-compress
  harness:
    binary: ./build/fuzz-compress
- name: fuzz-unit-file
  harness:
    binary: ./build/fuzz-unit-file
  corpus: ./test/fuzz/fuzz-unit-file
- name: fuzz-journald-syslog
  harness:
    binary: ./build/fuzz-journald-syslog
  corpus: ./test/fuzz/fuzz-journald-syslog
- name: fuzz-netdev-parser
  harness:
    binary: ./build/fuzz-netdev-parser
  corpus: ./test/fuzz/fuzz-netdev-parser
- name: fuzz-network-parser
  harness:
    binary: ./build/fuzz-network-parser
  corpus: ./test/fuzz/fuzz-network-parser