• Home
  • Raw
  • Download

Lines Matching refs:t

52 func testPrebuiltEtc(t *testing.T, bp string) (*android.TestContext, android.Config) {
70 android.FailIfErrored(t, errs)
72 android.FailIfErrored(t, errs)
77 func TestPrebuiltEtcVariants(t *testing.T) {
78 ctx, _ := testPrebuiltEtc(t, `
97 t.Errorf("expected 1, got %#v", foo_variants)
102 t.Errorf("expected 2, got %#v", bar_variants)
107 t.Errorf("expected 1, got %#v", bar_variants)
111 func TestPrebuiltEtcOutputPath(t *testing.T) {
112 ctx, _ := testPrebuiltEtc(t, `
122 t.Errorf("expected foo.installed.conf, got %q", p.outputFilePath.Base())
126 func TestPrebuiltEtcGlob(t *testing.T) {
127 ctx, _ := testPrebuiltEtc(t, `
141 t.Errorf("expected my_foo, got %q", p.outputFilePath.Base())
146 t.Errorf("expected bar.conf, got %q", p.outputFilePath.Base())
150 func TestPrebuiltEtcAndroidMk(t *testing.T) {
151 ctx, config := testPrebuiltEtc(t, `
174 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
178 t.Errorf("Incorrect %s '%s', expected '%s'", k, value, expectedValue)
181 t.Errorf("No %s defined, saw %q", k, entries.EntryMap)
186 func TestPrebuiltEtcHost(t *testing.T) {
187 ctx, _ := testPrebuiltEtc(t, `
197 t.Errorf("host bit is not set for a prebuilt_etc_host module.")
201 func TestPrebuiltUserShareInstallDirPath(t *testing.T) {
202 ctx, _ := testPrebuiltEtc(t, `
213 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
217 func TestPrebuiltUserShareHostInstallDirPath(t *testing.T) {
218 ctx, config := testPrebuiltEtc(t, `
230 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
234 func TestPrebuiltFontInstallDirPath(t *testing.T) {
235 ctx, _ := testPrebuiltEtc(t, `
245 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
249 func TestPrebuiltFirmwareDirPath(t *testing.T) {
275 t.Run(tt.description, func(t *testing.T) {
276 ctx, _ := testPrebuiltEtc(t, tt.config)
279 t.Errorf("expected %q, got %q", tt.expectedPath, p.installDirPath)