github.com/decred/dcrlnd@v0.7.6/make/fuzz_flags.mk (about)

     1  FUZZPKG = brontide lnwire wtwire zpay32
     2  FUZZ_TEST_RUN_TIME = 30
     3  FUZZ_TEST_TIMEOUT = 20
     4  FUZZ_NUM_PROCESSES = 4
     5  FUZZ_BASE_WORKDIR = $(shell pwd)/fuzz
     6  
     7  # If specific package is being fuzzed, construct the full name of the
     8  # subpackage.
     9  ifneq ($(pkg),)
    10  FUZZPKG := $(pkg)
    11  endif
    12  
    13  # The default run time per fuzz test is pretty low and normally will be
    14  # overwritten by a user depending on the time they have available.
    15  ifneq ($(run_time),)
    16  FUZZ_TEST_RUN_TIME := $(run_time)
    17  endif
    18  
    19  # If the timeout needs to be increased, overwrite the default value.
    20  ifneq ($(timeout),)
    21  FUZZ_TEST_TIMEOUT := $(timeout)
    22  endif
    23  
    24  # Overwrites the number of parallel processes. Should be set to the number of
    25  # processor cores in a system.
    26  ifneq ($(processes),)
    27  FUZZ_NUM_PROCESSES := $(processes)
    28  endif
    29  
    30  # Overwrite the base work directory for the fuzz run. Can be used to supply any
    31  # previously generated corpus.
    32  ifneq ($(base_workdir),)
    33  FUZZ_BASE_WORKDIR := $(base_workdir)
    34  endif