Home
last modified time | relevance | path

Searched refs:want (Results 1 – 25 of 34) sorted by relevance

12

/build/soong/android/soongconfig/
Dmodules_test.go26 want string
31 want: "board",
36 want: "BOARD",
41 want: "BOARD123",
46 want: "TARGET_BOARD",
51 want: "TARGET_BOARD",
56 want: "board_",
61 if got := CanonicalizeToProperty(tt.arg); got != tt.want {
62 t.Errorf("canonicalizeToProperty() = %v, want %v", got, tt.want)
73 want string
[all …]
/build/blueprint/proptools/
Dproptools_test.go23 want string
28 want: "s",
33 want: "string",
38 want: "STRING",
43 want: "stRiNg",
48 want: "under_score",
53 want: "UNDER_SCORE",
58 want: "x86",
63 want: "x86_64",
68 if got := PropertyNameForField(tt.input); got != tt.want {
[all …]
Dtag_test.go34 want bool
38 want: false,
42 want: false,
46 want: false,
50 want: true,
54 want: true,
58 want: true,
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)
75 want [][]int
[all …]
/build/soong/remoteexec/
Dremoteexec_test.go28 want string
41want: fmt.Sprintf("${remoteexec.Wrapper} --labels=compiler=clang,lang=cpp,type=compile --platform=…
57want: fmt.Sprintf("${remoteexec.Wrapper} --labels=compiler=clang,lang=cpp,type=compile --platform=…
62 if got := test.params.Template(); got != test.want {
63 t.Errorf("Template() returned\n%s\nwant\n%s", got, test.want)
79want := fmt.Sprintf("prebuilts/remoteexecution-client/live/rewrapper --labels=compiler=clang,lang=…
80 if got := params.NoVarTemplate(android.NullConfig("")); got != want {
81 t.Errorf("NoVarTemplate() returned\n%s\nwant\n%s", got, want)
95want := fmt.Sprintf("${remoteexec.Wrapper} --labels=compiler=clang,lang=cpp,type=compile --platfor…
97 if got := r.Template(); got != want {
[all …]
/build/soong/cmd/multiproduct_kati/
Dmain_test.go27 want [][]string
32 want: [][]string{{"1"}},
37 want: [][]string{{"1"}, {}},
42 want: [][]string{{"1", "2"}, {"3", "4"}},
47 want: [][]string{
63 want: [][]string{
87 if !reflect.DeepEqual(got, tc.want) {
89 tc.inputCount, tc.shardCount, tc.want, got)
/build/soong/jar/
Djar_test.go31 want string
37 want: "foo.bar",
42 want: "foo.bar",
47 want: "",
73 if got != tt.want {
74 t.Errorf("JavaPackage() = %v, want %v", got, tt.want)
140 check := func(t *testing.T, ch rune, i int, want bool) {
142 if got := javaIdentRune(ch, i); got != want {
143 t.Errorf("javaIdentRune() = %v, want %v", got, want)
/build/soong/third_party/zip/
Dzip_test.go49 want := fmt.Sprintf("%d.dat", i)
50 if zr.File[i].Name != want {
51 t.Fatalf("File(%d) = %q, want %q", i, zr.File[i].Name, want)
72 if got, want := fh2.Name, fh.Name; got != want {
73 t.Errorf("Name: got %s, want %s\n", got, want)
75 if got, want := fh2.UncompressedSize, wantUncompressedSize; got != want {
76 t.Errorf("UncompressedSize: got %d, want %d\n", got, want)
78 if got, want := fh2.UncompressedSize64, wantUncompressedSize64; got != want {
79 t.Errorf("UncompressedSize64: got %d, want %d\n", got, want)
81 if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want {
[all …]
Dreader_test.go443 func testFileMode(t *testing.T, zipName string, f *File, want os.FileMode) {
445 if want == 0 {
447 } else if mode != want {
448 t.Errorf("%s: %s mode: want %v, got %v", zipName, f.Name, want, mode)
795 const want = "TOC declares impossible 3472328296227680304 files in 57 byte"
796 if err == nil && !strings.Contains(err.Error(), want) {
797 t.Errorf("error = %v; want %q", err, want)
/build/soong/cmd/diff_target_files/
Dallow_list_test.go68 want zipDiff
79 want: zipDiff{
91 want: zipDiff{},
101 want: zipDiff{},
111 want: zipDiff{},
121 if !reflect.DeepEqual(got, tt.want) {
122 t.Errorf("Test_applyAllowLists() = %v, want %v", got, tt.want)
/build/blueprint/bootstrap/bpdoc/
Dreader_test.go113 want string
117 want: "github.com/google/blueprint/bootstrap",
121 want: "android/soong/android",
125 want: "android/soong/android",
129 want: "main",
138 if got != tt.want {
139 t.Errorf("funcNameToPkgPath(%v) = %v, want %v", tt.f, got, tt.want)
/build/blueprint/pathtools/
Dfs_test.go236 want := append([]string(nil), test.dirs...)
237 for i := range want {
238 want[i] = filepath.Join(dir, want[i])
240 if !reflect.DeepEqual(got, want) {
241 t.Errorf("want: %v, got %v", want, got)
282 want := append([]string(nil), test.dirs...)
283 for i := range want {
284 want[i] = filepath.Join(dir, want[i])
286 if !reflect.DeepEqual(got, want) {
287 t.Errorf("want: %v, got %v", want, got)
[all …]
Dglob_test.go889 t.Errorf("want: %v, got %v", test.match, match)
921 t.Errorf("want: %v, got %v", test.match, match)
/build/soong/ui/status/
Dcritical_path_test.go57 want []string
72 want: []string{"a"},
90 want: []string{"c", "b", "a"},
110 want: []string{"d", "c", "a"},
133 want: []string{"e", "d"},
153 if !reflect.DeepEqual(descs, tt.want) {
154 t.Errorf("criticalPath.criticalPath() = %v, want %v", descs, tt.want)
/build/soong/android/
Dutil_test.go63 f := func(t *testing.T, imp func([]string) []string, in, want []string) {
66 if !reflect.DeepEqual(out, want) {
69 t.Errorf(" expected: %#v", want)
492 want [][]string
500 want: [][]string(nil),
508 want: [][]string{{"a", "b"}},
516 want: [][]string{{"a", "b"}},
524 want: [][]string{{"a"}, {"b"}, {"c"}},
532 want: [][]string{{"a", "b"}, {"c", "d"}},
540 want: [][]string{{"a", "b"}, {"c"}},
[all …]
Drule_builder_test.go556 want string
563 want: "",
570 want: "$$abc",
578 want: "$abc",
586 want: "$abc$$",
594 want: "$$abc$",
602 want: "$$a$b$c$$",
610 want: "$$a$b$c$$",
615 if got := ninjaEscapeExceptForSpans(tt.args.s, tt.args.spans); got != tt.want {
616 t.Errorf("ninjaEscapeExceptForSpans() = %v, want %v", got, tt.want)
Dmutator_test.go148 want := []string{
187 if !reflect.DeepEqual(moduleStrings, want) {
188 t.Errorf("want module String() values:\n%q\ngot:\n%q", want, moduleStrings)
Dvariable_test.go315 want := []string{"defaults", "module", "product_variable_defaults", "product_variable_module"}
316 if g, w := foo.properties.Foo, want; !reflect.DeepEqual(g, w) {
/build/soong/zip/
Dzip_test.go484 want := test.files[i]
487 if want.Name != got.Name {
488 t.Errorf("incorrect file %d want %q got %q", i, want.Name, got.Name)
492 if want.UncompressedSize64 != got.UncompressedSize64 {
493 t.Errorf("incorrect file %s length want %v got %v", want.Name,
494 want.UncompressedSize64, got.UncompressedSize64)
497 if want.ExternalAttrs != got.ExternalAttrs {
498 t.Errorf("incorrect file %s attrs want %x got %x", want.Name,
499 want.ExternalAttrs, got.ExternalAttrs)
502 if want.CRC32 != got.CRC32 {
[all …]
/build/soong/cc/
Dgenrule_test.go70 t.Errorf(`want arm inputs %v, got %v`, expected, gen.Inputs.Strings())
76 t.Errorf(`want arm64 inputs %v, got %v`, expected, gen.Inputs.Strings())
/build/
Dbuildspec.mk.default59 # Uncomment this if you want the host tools built in debug mode. Otherwise
88 # If you want to always set certain system properties, add them to this list.
93 # If you want to reduce the system.img size by several meg, and are willing to
/build/make/
Dbuildspec.mk.default59 # Uncomment this if you want the host tools built in debug mode. Otherwise
88 # If you want to always set certain system properties, add them to this list.
93 # If you want to reduce the system.img size by several meg, and are willing to
/build/soong/cmd/merge_zips/
Dmerge_zips_test.go248 want := testZipEntriesToBuf(test.out)
271 if !bytes.Equal(want, out.Bytes()) {
273 t.Errorf("want:\n%s", dumpZip(want))
/build/blueprint/microfactory/
Dmicrofactory_test.go42 compare := func(got, want interface{}) {
43 if !reflect.DeepEqual(got, want) {
45 want, got)
/build/soong/java/
Djava_test.go385 for _, want := range test.results {
386 javac := ctx.ModuleForTests(want.library, "android_common").Rule("javac")
387 if javac.Args["processor"] != want.processors {
388 …t.Errorf("For library %v, expected %v, found %v", want.library, want.processors, javac.Args["proce…
/build/make/core/
DLINUX_KERNEL_COPYING41 if you want it, that you can change the software or use pieces of it
59 Also, for each author's protection and ours, we want to make certain
62 want its recipients to know that what they have is not the original, so
300 If you develop a new program, and you want it to be of the greatest
355 library. If this is what you want to do, use the GNU Library General

12