Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/build/soong/rust/
Dtest.go82 func (test *testDecorator) dataPaths() []android.DataPath {
83 return test.data
86 func (test *testDecorator) nativeCoverage() bool {
90 func (test *testDecorator) testHarness() bool {
91 return BoolDefault(test.Properties.Test_harness, true)
104 test := &testDecorator{
110 module.compiler = test
111 return module, test
114 func (test *testDecorator) compilerProps() []interface{} {
115 return append(test.binaryDecorator.compilerProps(), &test.Properties)
[all …]
/build/soong/cc/
Dtest.go185 func (test *testBinary) testPerSrc() bool {
186 return Bool(test.Properties.Test_per_src)
189 func (test *testBinary) srcs() []string {
190 return test.baseCompiler.Properties.Srcs
193 func (test *testBinary) dataPaths() []android.DataPath {
194 return test.data
197 func (test *testBinary) isAllTestsVariation() bool {
198 stem := test.binaryDecorator.Properties.Stem
202 func (test *testBinary) setSrc(name, src string) {
203 test.baseCompiler.Properties.Srcs = []string{src}
[all …]
Dtest_data_test.go39 test {
62 test {
82 test {
101 test {
118 for _, test := range testDataTests {
119 t.Run(test.name, func(t *testing.T) {
121 "dir/Android.bp": []byte(test.modules),
138 if len(got) != len(test.data) {
140 len(test.data), len(got))
144 if i >= len(test.data) {
[all …]
Dtidy_test.go78 for _, test := range testCases {
79 if test.errorMsg != "" {
80 testCcError(t, test.errorMsg, test.bp)
84 ctx := testCc(t, test.bp)
86 flags := ctx.ModuleForTests(test.libName, variant).Rule("clangTidy").Args["tidyFlags"]
87 for _, flag := range test.flags {
89 t.Errorf("tidyFlags %v for %s does not contain %s.", flags, test.libName, flag)
92 for _, flag := range test.noFlags {
94 t.Errorf("tidyFlags %v for %s should not contain %s.", flags, test.libName, flag)
144 for _, test := range testCases {
[all …]
/build/soong/android/
Dexpand_test.go166 for _, test := range expandTestCases {
167 got, err := Expand(test.in, func(s string) (string, error) {
171 if err != nil && !test.err {
172 t.Errorf("%q: unexpected error %s", test.in, err.Error())
173 } else if err == nil && test.err {
174 t.Errorf("%q: expected error, got %q", test.in, got)
175 } else if !test.err && got != test.out {
176 t.Errorf("%q: expected %q, got %q", test.in, test.out, got)
182 for _, test := range expandTestCases {
183 got, err := ExpandNinjaEscaped(test.in, expander)
[all …]
Dpackage_test.go61 for _, test := range packageTests {
62 t.Run(test.name, func(t *testing.T) {
66 test.fs.AddToFixture(),
68 ExtendWithErrorHandler(FixtureExpectsAllErrorsToMatchAPattern(test.expectedErrors)).
/build/blueprint/pathtools/
Dlists_test.go33 for _, test := range testCases {
34 t.Run(test.from, func(t *testing.T) {
35 got := ReplaceExtension(test.from, test.ext)
36 if got != test.to {
37 t.Errorf("ReplaceExtension(%v, %v) = %v; want: %v", test.from, test.ext, got, test.to)
Dfs_test.go97 for _, test := range testCases {
98 t.Run(test.from, func(t *testing.T) {
99 got := mock.followSymlinks(test.from)
100 if got != test.to {
101 t.Errorf("want: %v, got %v", test.to, got)
191 for _, test := range testCases {
192 t.Run(test.name, func(t *testing.T) {
193 got, err := fs.IsDir(filepath.Join(dir, test.name))
194 checkErr(t, test.err, err)
195 if got != test.isDir {
[all …]
/build/make/tools/aconfig/
DTEST_MAPPING5 "name": "aconfig.test"
13 "name": "aconfig.test.java"
17 "name": "aconfig.test.cpp"
20 // aconfig C++ integration tests (test mode auto-generated code)
21 "name": "aconfig.test.cpp.test_mode"
26 // "name": "aconfig.test.cpp.exported_mode"
30 "name": "aconfig.prod_mode.test.rust"
33 // aconfig Rust integration tests (test mode auto-generated code)
34 "name": "aconfig.test_mode.test.rust"
39 // "name": "aconfig.exported_mode.test.rust"
[all …]
/build/make/tools/aconfig/aconfig/
DAndroid.bp30 name: "aconfig.test",
41 name: "aconfig.test.flags",
42 package: "com.android.aconfig.test",
44 srcs: ["tests/test.aconfig"],
48 name: "aconfig.test.exported.flags",
49 package: "com.android.aconfig.test.exported",
56 name: "aconfig.test.forcereadonly.flags",
57 package: "com.android.aconfig.test.forcereadonly",
63 name: "aconfig.test.flag.values",
64 package: "com.android.aconfig.test",
[all …]
/build/make/tools/aconfig/aconfig/tests/
DAconfigTest.java1 import static com.android.aconfig.test.Flags.FLAG_DISABLED_RO;
2 import static com.android.aconfig.test.Flags.FLAG_DISABLED_RW;
3 import static com.android.aconfig.test.Flags.FLAG_ENABLED_FIXED_RO;
4 import static com.android.aconfig.test.Flags.FLAG_ENABLED_RO;
5 import static com.android.aconfig.test.Flags.FLAG_ENABLED_RW;
6 import static com.android.aconfig.test.Flags.disabledRo;
7 import static com.android.aconfig.test.Flags.disabledRw;
8 import static com.android.aconfig.test.Flags.enabledFixedRo;
9 import static com.android.aconfig.test.Flags.enabledRo;
10 import static com.android.aconfig.test.Flags.enabledRw;
[all …]
Dfirst.values2 package: "com.android.aconfig.test"
8 package: "com.android.aconfig.test"
14 package: "com.android.aconfig.test"
20 package: "com.android.aconfig.test"
26 package: "com.android.aconfig.test"
32 package: "com.android.aconfig.test"
38 package: "com.android.aconfig.test"
44 package: "com.android.aconfig.test"
/build/blueprint/proptools/
Descape_test.go35 in: `test`,
36 out: `test`,
40 in: `$test`,
41 out: `$$test`,
45 in: `test$`,
46 out: `test$$`,
50 in: `$test$`,
51 out: `$$test$$`,
58 in: `test`,
59 out: `test`,
[all …]
Dtag_test.go61 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)
94 for _, test := range tests {
95 b.Run(test.field, func(b *testing.B) {
96 field, _ := reflect.TypeOf(testType{}).FieldByName(test.field)
191 for _, test := range tests {
192 t.Run(test.name, func(t *testing.T) {
[all …]
Dfilter_test.go221 for _, test := range tests {
222 t.Run(test.name, func(t *testing.T) {
223 out, filtered := FilterPropertyStruct(reflect.TypeOf(test.in),
231 if filtered != test.filtered {
232 t.Errorf("expected filtered %v, got %v", test.filtered, filtered)
234 expected := reflect.TypeOf(test.out)
315 for _, test := range tests {
316 t.Run(test.name, func(t *testing.T) {
317 out, filtered := filterPropertyStruct(reflect.TypeOf(test.in), "", test.maxNameSize,
325 if filtered != test.filtered {
[all …]
/build/make/tools/rbcrun/testdata/
Dload.star3 load(":module1.star", test1="test")
4 load("//testdata:module2.star", test2="test")
5 load(":module3|test", test3="test")
8 def test():
14 test()
/build/soong/androidmk/parser/
Dmake_strings_test.go91 for _, test := range splitNTestCases {
92 got := test.in.SplitN(test.sep, test.n)
94 expectedString := dumpArray(test.expected)
120 for _, test := range valueTestCases {
121 got := test.in.Value(nil)
122 if got != test.expected {
123 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got)
220 for _, test := range splitWordsTestCases {
221 got := test.in.Words()
223 expectedString := dumpArray(test.expected)
[all …]
Dparser_test.go106 for _, test := range parserTestCases {
107 t.Run(test.name, func(t *testing.T) {
108 p := NewParser(test.name, bytes.NewBufferString(test.in))
115 if len(got) != len(test.out) {
116 t.Fatalf("length mismatch, expected %d nodes, got %d", len(test.out), len(got))
120 if got[i].Dump() != test.out[i].Dump() {
122 i, test.out[i], test.out[i].Dump(), got[i], got[i].Dump())
/build/soong/bpfix/bpfix/
Dbpfix_test.go321 for _, test := range tests {
322 t.Run(test.name, func(t *testing.T) {
323 runPass(t, test.in, test.out, func(fixer *Fixer) error {
407 for _, test := range tests {
408 t.Run(test.name, func(t *testing.T) {
409 runPass(t, test.in, test.out, func(fixer *Fixer) error {
560 for _, test := range tests {
561 t.Run(test.name, func(t *testing.T) {
562 runPass(t, test.in, test.out, func(fixer *Fixer) error {
620 for _, test := range tests {
[all …]
/build/soong/partner/androidmk/
Dandroidmk_test.go38 LOCAL_MODULE := test
60 for i, test := range testCases {
61 expected, err := bpfix.Reformat(test.expected)
66 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in))
73 …ed testcase '%s'\ninput:\n%s\n\nexpected:\n%s\ngot:\n%s\n", test.desc, strings.TrimSpace(test.in),…
/build/make/tools/envsetup/
Drun_envsetup_tests45 def test(shell, command, expected_return, expected_stdout, expected_stderr, expected_env): function
104 return test(shell, SOURCE_ENVSETUP + "lunch invalid-trunk_staging-eng",
111 return test(shell, SOURCE_ENVSETUP + "lunch aosp_arm-trunk_staging-eng",
121 return test(shell, SOURCE_ENVSETUP + "lunch2",
127 return test(shell, SOURCE_ENVSETUP + "lunch2 a b c d",
133 return test(shell, SOURCE_ENVSETUP + "lunch2 aosp_arm",
144 return test(shell, SOURCE_ENVSETUP + "lunch2 aosp_arm trunk_staging",
153 return test(shell, SOURCE_ENVSETUP + "lunch2 aosp_arm trunk_staging userdebug",
162 return test(shell, "build/soong/bin/list_products",
167 return test(shell, "build/soong/bin/list_releases aosp_arm",
[all …]
/build/soong/response/
Dresponse_test.go34 name: "single quoting test case 2",
39 name: "single quoting test case 3",
44 name: "single quoting test case 4",
49 name: "none quoting test case 1",
54 name: "none quoting test case 2",
59 name: "none quoting test case 3",
/build/soong/android_sdk/
Dsdk_repo_host_test.go100 for _, test := range testcases {
101 t.Run(test.name, func(t *testing.T) {
103 for _, input := range test.input {
109 err := remapPackageSpecs(specs, test.remaps)
111 if test.err != "" {
112 android.AssertErrorMessageEquals(t, "", test.err, err)
120 android.AssertArrayString(t, "outputs mismatch", test.output, outputs)
/build/soong/cmd/diff_target_files/
Dglob_test.go147 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)
/build/bazel/rules/aconfig/
Daconfig_declarations_test.bzl31 package = "com.android.aconfig.test"
34 name = "aconfig.test.value_set1",
35 values = [":aconfig.test.values1"],
41 name = "aconfig.test.value_set2",
42 values = [":aconfig.test.values2"],
48 name = "aconfig.test.values1",
57 name = "aconfig.test.values2",
68 srcs = ["test.aconfig"],
81 "com.android.aconfig.test",
83 "build/bazel/rules/aconfig/test.aconfig",

12345678910>>...13