/build/soong/cc/ |
D | test.go | 123 func (test *testBinary) testPerSrc() bool { 124 return Bool(test.Properties.Test_per_src) 127 func (test *testBinary) srcs() []string { 128 return test.baseCompiler.Properties.Srcs 131 func (test *testBinary) setSrc(name, src string) { 132 test.baseCompiler.Properties.Srcs = []string{src} 133 test.binaryDecorator.Properties.Stem = StringPtr(name) 140 if test, ok := m.linker.(testPerSrc); ok { 141 if test.testPerSrc() && len(test.srcs()) > 0 { 142 if duplicate, found := checkDuplicate(test.srcs()); found { [all …]
|
D | test_data_test.go | 39 test { 62 test { 82 test { 101 test { 120 for _, test := range testDataTests { 121 t.Run(test.name, func(t *testing.T) { 125 "dir/Blueprints": []byte(test.modules), 143 if len(got) != len(test.data) { 145 len(test.data), len(got)) 149 if i >= len(test.data) { [all …]
|
/build/blueprint/pathtools/ |
D | fs_test.go | 94 for _, test := range testCases { 95 t.Run(test.from, func(t *testing.T) { 96 got := mock.followSymlinks(test.from) 97 if got != test.to { 98 t.Errorf("want: %v, got %v", test.to, got) 160 for _, test := range testCases { 161 t.Run(test.name, func(t *testing.T) { 162 got, err := fs.IsDir(test.name) 163 checkErr(t, test.err, err) 164 if got != test.isDir { [all …]
|
/build/soong/python/ |
D | test.go | 47 func (test *testDecorator) bootstrapperProps() []interface{} { 48 return append(test.binaryDecorator.bootstrapperProps(), &test.testProperties) 51 func (test *testDecorator) install(ctx android.ModuleContext, file android.Path) { 52 test.testConfig = tradefed.AutoGenPythonBinaryHostTestConfig(ctx, test.testProperties.Test_config, 53 test.testProperties.Test_config_template, test.binaryDecorator.binaryProperties.Test_suites) 55 test.binaryDecorator.pythonInstaller.dir = "nativetest" 56 test.binaryDecorator.pythonInstaller.dir64 = "nativetest64" 58 test.binaryDecorator.pythonInstaller.relative = ctx.ModuleName() 60 test.binaryDecorator.pythonInstaller.install(ctx, file) 68 test := &testDecorator{binaryDecorator: binary} [all …]
|
/build/blueprint/proptools/ |
D | escape_test.go | 31 in: `test`, 32 out: `test`, 36 in: `$test`, 37 out: `$$test`, 41 in: `test$`, 42 out: `test$$`, 46 in: `$test$`, 47 out: `$$test$$`, 54 in: `test`, 55 out: `test`, [all …]
|
D | tag_test.go | 61 for _, test := range tests { 62 t.Run(test.field, func(t *testing.T) { 63 field, _ := reflect.TypeOf(testType{}).FieldByName(test.field) 64 if got := HasTag(field, "name", "value"); got != test.want { 65 t.Errorf(`HasTag(%q, "name", "value") = %v, want %v`, field.Tag, got, test.want) 133 for _, test := range tests { 134 t.Run(test.name, func(t *testing.T) { 135 if got := PropertyIndexesWithTag(test.ps, "name", "value"); !reflect.DeepEqual(got, test.want) { 136 t.Errorf("PropertyIndexesWithTag() = %v, want %v", got, test.want)
|
/build/soong/androidmk/parser/ |
D | parser_test.go | 40 for _, test := range parserTestCases { 41 t.Run(test.name, func(t *testing.T) { 42 p := NewParser(test.name, bytes.NewBufferString(test.in)) 49 if len(got) != len(test.out) { 50 t.Fatalf("length mismatch, expected %d nodes, got %d", len(test.out), len(got)) 54 if got[i].Dump() != test.out[i].Dump() { 56 i, test.out[i], test.out[i].Dump(), got[i], got[i].Dump())
|
D | make_strings_test.go | 92 for _, test := range splitNTestCases { 93 got := test.in.SplitN(test.sep, test.n) 95 expectedString := dumpArray(test.expected) 121 for _, test := range valueTestCases { 122 got := test.in.Value(nil) 123 if got != test.expected { 124 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got) 164 for _, test := range splitWordsTestCases { 165 got := test.in.Words() 167 expectedString := dumpArray(test.expected) [all …]
|
/build/soong/android/ |
D | expand_test.go | 143 for _, test := range expandTestCases { 144 got, err := Expand(test.in, expander) 145 if err != nil && !test.err { 146 t.Errorf("%q: unexpected error %s", test.in, err.Error()) 147 } else if err == nil && test.err { 148 t.Errorf("%q: expected error, got %q", test.in, got) 149 } else if !test.err && got != test.out { 150 t.Errorf("%q: expected %q, got %q", test.in, test.out, got)
|
D | path_properties_test.go | 58 test { 70 test { 92 for _, test := range tests { 93 t.Run(test.name, func(t *testing.T) { 100 bp := test.bp + ` 132 if g, w := m.sourceDeps, test.deps; !reflect.DeepEqual(g, w) {
|
D | vts_config_test.go | 23 func testVtsConfig(test *testing.T, bpFileContents string) *TestContext { 26 test.Fatal(err) 40 FailIfErrored(test, errs) 42 FailIfErrored(test, errs)
|
D | arch_test.go | 220 for _, test := range tests { 221 t.Run(test.name, func(t *testing.T) { 222 out, filtered := filterArchStruct(reflect.TypeOf(test.in)) 223 if filtered != test.filtered { 224 t.Errorf("expected filtered %v, got %v", test.filtered, filtered) 226 expected := reflect.TypeOf(test.out)
|
D | paths_test.go | 685 for _, test := range testCases { 686 t.Run(test.name, func(t *testing.T) { 687 testConfig := TestConfig(test.buildDir, nil) 689 _, err := f.f(ctx, test.src) 694 if test.err == "" { 696 } else if !strings.Contains(err.Error(), test.err) { 697 t.Fatalf("incorrect error, want substring %q got %q", test.err, err.Error()) 700 if test.err != "" { 701 t.Fatalf("missing error %q", test.err) 773 for _, test := range tests { [all …]
|
D | neverallow_test.go | 169 for _, test := range neverallowTests { 170 t.Run(test.name, func(t *testing.T) { 171 _, errs := testNeverallow(t, config, test.fs) 173 if test.expectedError == "" { 176 FailIfNoMatchingErrors(t, test.expectedError, errs)
|
/build/soong/bpfix/bpfix/ |
D | bpfix_test.go | 251 for _, test := range tests { 252 t.Run(test.name, func(t *testing.T) { 253 runPass(t, test.in, test.out, func(fixer *Fixer) error { 337 for _, test := range tests { 338 t.Run(test.name, func(t *testing.T) { 339 runPass(t, test.in, test.out, func(fixer *Fixer) error { 490 for _, test := range tests { 491 t.Run(test.name, func(t *testing.T) { 492 runPass(t, test.in, test.out, func(fixer *Fixer) error { 550 for _, test := range tests { [all …]
|
/build/soong/zip/ |
D | zip_test.go | 385 for _, test := range testCases { 386 t.Run(test.name, func(t *testing.T) { 387 if test.args.Error() != nil { 388 t.Fatal(test.args.Error()) 392 args.FileArgs = test.args.FileArgs() 393 args.CompressionLevel = test.compressionLevel 394 args.EmulateJar = test.emulateJar 395 args.AddDirectoryEntriesToZip = test.dirEntries 396 args.NonDeflatedFiles = test.nonDeflatedFiles 397 args.ManifestSourcePath = test.manifest [all …]
|
/build/soong/cmd/diff_target_files/ |
D | glob_test.go | 147 for _, test := range testCases { 148 t.Run(test.pattern+","+test.name, func(t *testing.T) { 149 match, err := Match(test.pattern, test.name) 153 if match != test.match { 154 t.Errorf("want: %v, got %v", test.match, match)
|
D | compare_test.go | 120 for _, test := range testCases { 121 t.Run(test.name, func(t *testing.T) { 122 diff := diffTargetFilesLists(test.a, test.b) 124 if !reflect.DeepEqual(diff, test.diff) { 127 …t.Errorf(" want %v, %v, %v", test.diff.modified, test.diff.onlyInA, test.diff.onl…
|
/build/soong/cmd/merge_zips/ |
D | merge_zips_test.go | 208 for _, test := range testCases { 209 t.Run(test.name, func(t *testing.T) { 211 for i, in := range test.in { 219 want := testZipEntriesToBuf(test.out) 225 test.sort, test.jar, false, test.stripDirEntries, test.ignoreDuplicates, 226 test.stripFiles, test.stripDirs, test.zipsToNotStrip) 233 if test.err != "" { 235 t.Fatal("missing err, expected: ", test.err) 236 } else if !strings.Contains(strings.ToLower(err.Error()), strings.ToLower(test.err)) { 237 t.Fatal("incorrect err, want:", test.err, "got:", err)
|
/build/blueprint/parser/ |
D | printer_test.go | 226 test /* test */ { 246 test /* test */ { 300 test { 311 test {} 326 test { 337 test {} 350 test // test 357 test { // test
|
/build/soong/java/ |
D | app_test.go | 500 for _, test := range testCases { 501 t.Run(moduleType+" "+test.name, func(t *testing.T) { 506 }`, moduleType, test.sdkVersion) 509 config.TestProductVariables.Platform_sdk_version = &test.platformSdkInt 510 config.TestProductVariables.Platform_sdk_codename = &test.platformSdkCodename 511 config.TestProductVariables.Platform_sdk_final = &test.platformSdkFinal 530 if gotMinSdkVersion != test.expectedMinSdkVersion { 532 test.expectedMinSdkVersion, gotMinSdkVersion) 535 if gotTargetSdkVersion != test.expectedMinSdkVersion { 537 test.expectedMinSdkVersion, gotTargetSdkVersion) [all …]
|
D | dexpreopt_test.go | 133 for _, test := range tests { 134 t.Run(test.name, func(t *testing.T) { 135 ctx := testJava(t, test.bp) 140 if enabled != test.enabled { 141 t.Fatalf("want dexpreopt %s, got %s", enabledString(test.enabled), enabledString(enabled))
|
/build/soong/genrule/ |
D | genrule_test.go | 458 for _, test := range testcases { 459 t.Run(test.name, func(t *testing.T) { 463 bp += test.prop 466 …config.TestProductVariables.Allow_missing_dependencies = proptools.BoolPtr(test.allowMissingDepend… 469 ctx.SetAllowMissingDependencies(test.allowMissingDependencies) 475 if errs == nil && test.err != "" { 476 t.Fatalf("want error %q, got no error", test.err) 477 } else if errs != nil && test.err == "" { 479 } else if test.err != "" { 487 if !strings.Contains(errs[0].Error(), test.err) { [all …]
|
/build/blueprint/ |
D | .gitignore | 1 out.test 2 src.test
|
/build/soong/dexpreopt/ |
D | dexpreopt_test.go | 154 for _, test := range tests { 155 t.Run(test.name, func(t *testing.T) { 160 test.setup(&global, &module) 167 if test.strip { 168 want := `zip2zip -i out/unstripped/test.apk -o out/stripped/test.apk -x "classes*.dex"`
|