gitlab-ci.yml: Add oss-fuzz build tests
commit48eac1019769ebc4647ba380a828c25d8014be37
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 16 Jul 2020 16:33:30 +0000 (16 12:33 -0400)
committerThomas Huth <thuth@redhat.com>
Tue, 21 Jul 2020 05:21:54 +0000 (21 07:21 +0200)
treecf0d9644ab3dbeda3741ff6b458ec5da5f7a3681
parentbcbad8b05c7f9072cadd3d3ebef2992196b73801
gitlab-ci.yml: Add oss-fuzz build tests

This tries to build and run the fuzzers with the same build-script used
by oss-fuzz. This doesn't guarantee that the builds on oss-fuzz will
also succeed, since oss-fuzz provides its own compiler and fuzzer vars,
but it can catch changes that are not compatible with the the
./scripts/oss-fuzz/build.sh script.
The strange way of finding fuzzer binaries stems from the method used by
oss-fuzz:
https://github.com/google/oss-fuzz/blob/master/infra/base-images/base-runner/targets_list

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200720073223.22945-1-thuth@redhat.com>
[thuth: Tweak the "script" to make it work, exclude slirp test, etc.]
Signed-off-by: Thomas Huth <thuth@redhat.com>
.gitlab-ci.yml