Skip to content

Commit

Permalink
Add honggfuzz build in travis. (google#3589)
Browse files Browse the repository at this point in the history
* Add honggfuzz build in travis.
* Skip check_build for honggfuzz, only build.
  • Loading branch information
inferno-chromium authored Apr 8, 2020
1 parent e2e155f commit bc308a7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ matrix:
- TRAVIS_ENGINE=afl
- TRAVIS_SANITIZER=address
- TRAVIS_ARCHITECTURE=x86_64
- name: "honggfuzz address x86_64"
env:
- TRAVIS_ENGINE=honggfuzz
- TRAVIS_SANITIZER=address
- TRAVIS_ARCHITECTURE=x86_64
- name: "none address x86_64"
env:
- TRAVIS_ENGINE=none
Expand Down
7 changes: 5 additions & 2 deletions infra/travis/travis_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import yaml

DEFAULT_ARCHITECTURES = ['x86_64']
DEFAULT_ENGINES = ['afl', 'libfuzzer']
DEFAULT_ENGINES = ['afl', 'honggfuzz', 'libfuzzer']
DEFAULT_SANITIZERS = ['address', 'undefined']


Expand Down Expand Up @@ -125,7 +125,10 @@ def build_project(project):

print('Building project', project)
build_fuzzers(project, engine, sanitizer, architecture)
if engine != 'none':

# TODO(https://github.com/google/oss-fuzz/issues/3592): Re-enable after
# Honggfuzz is supported in check_build.
if engine not in ['none', 'honggfuzz']:
check_build(project, engine, sanitizer, architecture)


Expand Down
15 changes: 15 additions & 0 deletions projects/zlib/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/bin/bash -eu
# Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

./configure
make -j$(nproc) clean
Expand Down
1 change: 1 addition & 0 deletions projects/zlib/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ auto_ccs:
fuzzing_engines:
- libfuzzer
- afl
- honggfuzz
- dataflow
sanitizers:
- address
Expand Down

0 comments on commit bc308a7

Please sign in to comment.