1#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17class ConfigKeys(object):
18    FUZZER_CONFIGS = "fuzzer_configs"
19
20class ExitCode(object):
21    """Exit codes for test binaries."""
22    FUZZER_TEST_PASS = 0
23    FUZZER_TEST_FAIL = 77
24
25# Directory on the target where the tests are copied.
26FUZZER_TEST_DIR = "/data/local/tmp/llvmfuzzer_test"
27
28# Directory on the target where VTS specs are copied.
29FUZZER_SPEC_DIR = "/data/local/tmp/spec"
30
31# Directory under data_file_path on the host where fuzzer executables are.
32FUZZER_SRC_DIR = "DATA/bin"
33
34# File used to save crash-causing fuzzer input.
35FUZZER_TEST_CRASH_REPORT = FUZZER_TEST_DIR + "/crash_report"
36
37# Default parameters that will be passed to fuzzer executable.
38FUZZER_PARAMS = {
39    "max_len": 100,
40    "max_total_time": 60,
41    "exact_artifact_path": FUZZER_TEST_CRASH_REPORT
42}
43
44