Home
last modified time | relevance | path

Searched refs:errs (Results 1 – 25 of 63) sorted by relevance

123

/build/soong/android/
Dpackage_test.go61 _, 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 …]
Dnamespace_test.go146 _, 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 …]
Dmutator_test.go82 _, 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 …]
Ddefaults_test.go92 _, 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)
Dandroidmk_test.go88 _, 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)
Dcsuite_config_test.go27 _, errs := ctx.ParseFileList(".", []string{"Android.bp"})
28 FailIfErrored(test, errs)
29 _, errs = ctx.PrepareBuildActions(config)
30 FailIfErrored(test, errs)
Dvts_config_test.go27 _, errs := ctx.ParseFileList(".", []string{"Android.bp"})
28 FailIfErrored(test, errs)
29 _, errs = ctx.PrepareBuildActions(config)
30 FailIfErrored(test, errs)
Dvariable_test.go206 _, 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)
Dtesting.go92 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/
Dcontext_test.go157 _, _, 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 …]
Dmodule_ctx_test.go79 _, 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 …]
Dcontext.go654 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 …]
Dmodule_ctx.go342 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/
Dgenrule_test.go475 _, 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/
Dmodules.go35 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/
Dcommand.go148 …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 …]
Dglob.go162 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/
Dbpmodify.go74 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/
Dunpack_test.go30 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 …]
Dunpack.go49 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/
Dbpf_test.go86 _, 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/
Dgenrule_test.go59 _, 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/
Dproject_json_test.go43 _, errs := ctx.ParseFileList(".", []string{"Android.bp"})
44 android.FailIfErrored(t, errs)
45 _, errs = ctx.PrepareBuildActions(config)
46 android.FailIfErrored(t, errs)
Drust_test.go100 _, 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/
Ddeps.go33 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)

123