Lines Matching refs:t

52 func testPrebuiltEtcContext(t *testing.T, bp string) (*android.TestContext, android.Config) {
74 func testPrebuiltEtc(t *testing.T, bp string) (*android.TestContext, android.Config) {
75 t.Helper()
77 ctx, config := testPrebuiltEtcContext(t, bp)
79 android.FailIfErrored(t, errs)
81 android.FailIfErrored(t, errs)
86 func testPrebuiltEtcError(t *testing.T, pattern, bp string) {
87 t.Helper()
89 ctx, config := testPrebuiltEtcContext(t, bp)
92 android.FailIfNoMatchingErrors(t, pattern, errs)
98 android.FailIfNoMatchingErrors(t, pattern, errs)
102 t.Fatalf("missing expected error %q (0 errors are returned)", pattern)
104 func TestPrebuiltEtcVariants(t *testing.T) {
105 ctx, _ := testPrebuiltEtc(t, `
124 t.Errorf("expected 1, got %#v", foo_variants)
129 t.Errorf("expected 2, got %#v", bar_variants)
134 t.Errorf("expected 1, got %#v", bar_variants)
138 func TestPrebuiltEtcOutputPath(t *testing.T) {
139 ctx, _ := testPrebuiltEtc(t, `
149 t.Errorf("expected foo.installed.conf, got %q", p.outputFilePath.Base())
153 func TestPrebuiltEtcGlob(t *testing.T) {
154 ctx, _ := testPrebuiltEtc(t, `
168 t.Errorf("expected my_foo, got %q", p.outputFilePath.Base())
173 t.Errorf("expected bar.conf, got %q", p.outputFilePath.Base())
177 func TestPrebuiltEtcAndroidMk(t *testing.T) {
178 ctx, config := testPrebuiltEtc(t, `
201 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
205 t.Errorf("Incorrect %s '%s', expected '%s'", k, value, expectedValue)
208 t.Errorf("No %s defined, saw %q", k, entries.EntryMap)
213 func TestPrebuiltEtcRelativeInstallPathInstallDirPath(t *testing.T) {
214 ctx, _ := testPrebuiltEtc(t, `
225 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
229 func TestPrebuiltEtcCannotSetRelativeInstallPathAndSubDir(t *testing.T) {
230 testPrebuiltEtcError(t, "relative_install_path is set. Cannot set sub_dir", `
240 func TestPrebuiltEtcHost(t *testing.T) {
241 ctx, _ := testPrebuiltEtc(t, `
251 t.Errorf("host bit is not set for a prebuilt_etc_host module.")
255 func TestPrebuiltUserShareInstallDirPath(t *testing.T) {
256 ctx, _ := testPrebuiltEtc(t, `
267 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
271 func TestPrebuiltUserShareHostInstallDirPath(t *testing.T) {
272 ctx, config := testPrebuiltEtc(t, `
284 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
288 func TestPrebuiltFontInstallDirPath(t *testing.T) {
289 ctx, _ := testPrebuiltEtc(t, `
299 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
303 func TestPrebuiltFirmwareDirPath(t *testing.T) {
329 t.Run(tt.description, func(t *testing.T) {
330 ctx, _ := testPrebuiltEtc(t, tt.config)
333 t.Errorf("expected %q, got %q", tt.expectedPath, p.installDirPath)
339 func TestPrebuiltDSPDirPath(t *testing.T) {
365 t.Run(tt.description, func(t *testing.T) {
366 ctx, _ := testPrebuiltEtc(t, tt.config)
369 t.Errorf("expected %q, got %q", tt.expectedPath, p.installDirPath)