Example #1
0
def is_oss_fuzz(benchmark):
    """Returns True if |benchmark| is OSS-Fuzz-based project."""
    return os.path.isfile(oss_fuzz.get_config_file(benchmark))
Example #2
0
def test_get_config_file():
    """Test that we can get the config file of an OSS-Fuzz benchmark."""
    assert oss_fuzz.get_config_file(
        conftest.OSS_FUZZ_BENCHMARK_NAME) == os.path.join(
            utils.ROOT_DIR, 'benchmarks', conftest.OSS_FUZZ_BENCHMARK_NAME,
            'oss-fuzz.yaml')