add additional fields to cc_fuzz build types
Specifically, this adds: * Owner * Disable (stop fuzzer from running in Haiku) * Bug Component * Bug Hotlist The fields are all inside a new 'options' struct. The values from these fields (if any) are written into a config file as json. Bug: 142551000 Test: ran locally with a modified build file and verified output in .zip Change-Id: I86edf74c2cebe9912ac0ad203f99028be4062c8b
This commit is contained in:
@@ -317,6 +317,11 @@ func (fuzz *fuzzBinary) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkDa
|
||||
filepath.Dir(fuzz.dictionary.String())+":"+fuzz.dictionary.Base())
|
||||
}
|
||||
|
||||
if fuzz.config != nil {
|
||||
fuzzFiles = append(fuzzFiles,
|
||||
filepath.Dir(fuzz.config.String())+":config.json")
|
||||
}
|
||||
|
||||
if len(fuzzFiles) > 0 {
|
||||
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
|
||||
fmt.Fprintln(w, "LOCAL_TEST_DATA := "+strings.Join(fuzzFiles, " "))
|
||||
|
Reference in New Issue
Block a user