/build/soong/android/ |
D | package_test.go | 61 _, errs := testPackage(test.fs) 65 FailIfErrored(t, errs) 68 FailIfNoMatchingErrors(t, expectedError, errs) 70 if len(errs) > len(expectedErrors) { 71 t.Errorf("additional errors found, expected %d, found %d", len(expectedErrors), len(errs)) 75 for i, err := range errs { 93 _, errs := ctx.ParseBlueprintsFiles(".") 94 if len(errs) > 0 { 95 return ctx, errs 98 _, errs = ctx.PrepareBuildActions(config) [all …]
|
D | namespace_test.go | 146 _, errs := setupTestExpectErrs( 180 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() { 181 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs) 381 _, errs := setupTestExpectErrs( 399 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() { 400 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs) 405 _, errs := setupTestExpectErrs( 430 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() { 431 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs) 458 _, errs := setupTestExpectErrs( [all …]
|
D | mutator_test.go | 82 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 83 FailIfErrored(t, errs) 84 _, errs = ctx.PrepareBuildActions(config) 85 FailIfErrored(t, errs) 143 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 144 FailIfErrored(t, errs) 145 _, errs = ctx.PrepareBuildActions(config) 146 FailIfErrored(t, errs) 246 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 247 FailIfErrored(t, errs) [all …]
|
D | defaults_test.go | 92 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 93 FailIfErrored(t, errs) 94 _, errs = ctx.PrepareBuildActions(config) 95 FailIfErrored(t, errs) 138 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 139 FailIfErrored(t, errs) 140 _, errs = ctx.PrepareBuildActions(config) 141 FailIfErrored(t, errs)
|
D | androidmk_test.go | 88 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 89 FailIfErrored(t, errs) 90 _, errs = ctx.PrepareBuildActions(config) 91 FailIfErrored(t, errs) 260 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 261 FailIfErrored(t, errs) 262 _, errs = ctx.PrepareBuildActions(config) 263 FailIfErrored(t, errs)
|
D | csuite_config_test.go | 27 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 28 FailIfErrored(test, errs) 29 _, errs = ctx.PrepareBuildActions(config) 30 FailIfErrored(test, errs)
|
D | vts_config_test.go | 27 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 28 FailIfErrored(test, errs) 29 _, errs = ctx.PrepareBuildActions(config) 30 FailIfErrored(test, errs)
|
D | variable_test.go | 206 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 207 FailIfErrored(t, errs) 208 _, errs = ctx.PrepareBuildActions(config) 209 FailIfErrored(t, errs) 308 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 309 FailIfErrored(t, errs) 310 _, errs = ctx.PrepareBuildActions(config) 311 FailIfErrored(t, errs)
|
D | testing.go | 92 func (ctx *TestContext) ParseFileList(rootDir string, filePaths []string) (deps []string, errs []er… 98 func (ctx *TestContext) ParseBlueprintsFiles(rootDir string) (deps []string, errs []error) { 359 func FailIfErrored(t *testing.T, errs []error) { 361 if len(errs) > 0 { 362 for _, err := range errs { 369 func FailIfNoMatchingErrors(t *testing.T, pattern string, errs []error) { 378 for _, err := range errs { 385 t.Errorf("missing the expected error %q (checked %d error(s))", pattern, len(errs)) 386 for i, err := range errs { 392 func CheckErrorsAgainstExpectations(t *testing.T, errs []error, expectedErrorPatterns []string) { [all …]
|
/build/blueprint/ |
D | context_test.go | 157 _, _, errs := ctx.parseOne(".", "Blueprint", r, parser.NewScope(nil), nil) 158 if len(errs) > 0 { 160 for _, err := range errs { 166 _, errs = ctx.ResolveDependencies(nil) 167 if len(errs) > 0 { 169 for _, err := range errs { 223 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil) 224 if len(errs) > 0 { 226 for _, err := range errs { 232 _, errs = ctx.ResolveDependencies(nil) [all …]
|
D | module_ctx_test.go | 79 _, errs := ctx.ParseFileList(".", []string{"Blueprints"}, nil) 80 if len(errs) > 0 { 82 for _, err := range errs { 87 _, errs = ctx.ResolveDependencies(nil) 88 if len(errs) > 0 { 91 for _, err := range errs { 95 for _, err := range errs { 199 func expectedErrors(t *testing.T, errs []error, expectedMessages ...string) { 201 if len(errs) != len(expectedMessages) { 202 t.Errorf("expected %d error, found: %q", len(expectedMessages), errs) [all …]
|
D | context.go | 654 config interface{}) (deps []string, errs []error) { 665 config interface{}) (deps []string, errs []error) { 700 newModules, errs := runAndRemoveLoadHooks(c, config, module, &scopedModuleFactories) 701 if len(errs) > 0 { 702 return errs 708 errs = addModule(n) 709 if len(errs) > 0 { 710 return errs 719 …module, errs := processModuleDef(def, file.Name, c.moduleFactories, scopedModuleFactories, c.ignor… 720 if len(errs) == 0 && module != nil { [all …]
|
D | module_ctx.go | 342 errs []error member 383 d.errs = append(d.errs, err) 430 return len(d.errs) > 0 479 m.errs = append(m.errs, &ModuleError{ 904 …modules, errs := mctx.context.createVariations(mctx.module, mctx.name, mctx.defaultVariation, vari… 905 if len(errs) > 0 { 906 mctx.errs = append(mctx.errs, errs...) 965 errs := mctx.context.addDependency(modInfo, tag, dep) 966 if len(errs) > 0 { 967 mctx.errs = append(mctx.errs, errs...) [all …]
|
/build/soong/genrule/ |
D | genrule_test.go | 475 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 476 if errs == nil { 477 _, errs = ctx.PrepareBuildActions(config) 479 if errs == nil && test.err != "" { 481 } else if errs != nil && test.err == "" { 482 android.FailIfErrored(t, errs) 484 if len(errs) != 1 { 485 t.Errorf("want 1 error, got %d errors:", len(errs)) 486 for _, err := range errs { 491 if !strings.Contains(errs[0].Error(), test.err) { [all …]
|
/build/soong/android/soongconfig/ |
D | modules.go | 35 file, errs := parser.ParseAndEval(from, r, scope) 37 if len(errs) > 0 { 38 return nil, errs 52 errs = append(errs, newErrs...) 62 if len(errs) > 0 { 63 return nil, errs 81 func processImportModuleDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) { 123 func processModuleTypeDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) { 127 _, errs = proptools.UnpackProperties(def.Properties, props) 128 if len(errs) > 0 { [all …]
|
/build/blueprint/bootstrap/ |
D | command.go | 148 …deps, errs := ctx.ParseFileList(filepath.Dir(bootstrapConfig.topLevelBlueprintsFile), filesToParse… 149 if len(errs) > 0 { 150 fatalErrors(errs) 156 extraDeps, errs := ctx.ResolveDependencies(config) 157 if len(errs) > 0 { 158 fatalErrors(errs) 176 extraDeps, errs = ctx.PrepareBuildActions(config) 177 if len(errs) > 0 { 178 fatalErrors(errs) 205 buffer, errs := generateGlobNinjaFile(ctx.Globs) [all …]
|
D | glob.go | 162 extraDeps, errs := ctx.ResolveDependencies(nil) 166 if len(errs) > 0 { 167 return nil, errs 170 extraDeps, errs = ctx.PrepareBuildActions(nil) 174 if len(errs) > 0 { 175 return nil, errs
|
/build/blueprint/bpmodify/ |
D | bpmodify.go | 74 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 75 if len(errs) > 0 { 76 for _, err := range errs { 79 return fmt.Errorf("%d parsing errors", len(errs)) 82 modified, errs := findModules(file) 83 if len(errs) > 0 { 84 for _, err := range errs { 122 func findModules(file *parser.File) (modified bool, errs []error) { 130 errs = append(errs, newErrs...) 138 return modified, errs [all …]
|
/build/blueprint/proptools/ |
D | unpack_test.go | 30 errs []error 679 file, errs := parser.ParseAndEval("", r, parser.NewScope(nil)) 680 if len(errs) != 0 { 683 for _, err := range errs { 703 _, errs = UnpackProperties(module.Properties, output...) 704 if len(errs) != 0 && len(testCase.errs) == 0 { 707 for _, err := range errs { 711 } else if !reflect.DeepEqual(errs, testCase.errs) { 714 t.Errorf(" expected: %+v", testCase.errs) 715 t.Errorf(" got: %+v", errs) [all …]
|
D | unpack.go | 49 errs []error member 73 return nil, unpackContext.errs 83 if len(unpackContext.errs) >= maxUnpackErrors { 84 return nil, unpackContext.errs 99 if len(unusedNames) == 0 && len(unpackContext.errs) == 0 { 116 ctx.errs = append(ctx.errs, &UnpackError{ 121 return ctx.errs 125 nOldErrors := len(ctx.errs) 168 return len(ctx.errs) == nOldErrors 179 ctx.errs = append(ctx.errs, e) [all …]
|
/build/soong/bpf/ |
D | bpf_test.go | 86 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 87 if errs == nil { 88 _, errs = ctx.PrepareBuildActions(config) 90 if errs != nil { 91 t.Fatal(errs)
|
/build/soong/cc/ |
D | genrule_test.go | 59 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 60 if errs == nil { 61 _, errs = ctx.PrepareBuildActions(config) 63 if errs != nil { 64 t.Fatal(errs)
|
/build/soong/rust/ |
D | project_json_test.go | 43 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 44 android.FailIfErrored(t, errs) 45 _, errs = ctx.PrepareBuildActions(config) 46 android.FailIfErrored(t, errs)
|
D | rust_test.go | 100 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 101 android.FailIfErrored(t, errs) 102 _, errs = ctx.PrepareBuildActions(config) 103 android.FailIfErrored(t, errs) 120 _, errs := ctx.ParseFileList(".", []string{"Android.bp"}) 121 if len(errs) > 0 { 122 android.FailIfNoMatchingErrors(t, pattern, errs) 126 _, errs = ctx.PrepareBuildActions(config) 127 if len(errs) > 0 { 128 android.FailIfNoMatchingErrors(t, pattern, errs)
|
/build/soong/makedeps/ |
D | deps.go | 33 nodes, errs := p.Parse() 35 if len(errs) == 1 { 36 return nil, errs[0] 37 } else if len(errs) > 1 { 38 return nil, fmt.Errorf("many errors: %v", errs)
|