Lines Matching refs:test
462 for _, test := range testcases {
463 t.Run(test.name, func(t *testing.T) {
466 bp += test.prop
470 …config.TestProductVariables.Allow_missing_dependencies = proptools.BoolPtr(test.allowMissingDepend…
473 ctx.SetAllowMissingDependencies(test.allowMissingDependencies)
479 if errs == nil && test.err != "" {
480 t.Fatalf("want error %q, got no error", test.err)
481 } else if errs != nil && test.err == "" {
483 } else if test.err != "" {
491 if !strings.Contains(errs[0].Error(), test.err) {
492 t.Fatalf("want %q, got %q", test.err, errs[0].Error())
498 if g, w := gen.rawCommands[0], "'"+test.expect+"'"; w != g {
570 for _, test := range testcases {
571 t.Run(test.name, func(t *testing.T) {
572 gen := ctx.ModuleForTests(test.name, "")
575 if len(test.expectedHash) > 0 {
578 expectedInputHashOption := " --input-hash " + test.expectedHash + " "
634 for _, test := range testcases {
635 t.Run(test.name, func(t *testing.T) {
639 bp += test.prop
649 if errs == nil && test.err != "" {
650 t.Fatalf("want error %q, got no error", test.err)
651 } else if errs != nil && test.err == "" {
653 } else if test.err != "" {
661 if !strings.Contains(errs[0].Error(), test.err) {
662 t.Fatalf("want %q, got %q", test.err, errs[0].Error())
668 if g, w := gen.rawCommands, test.cmds; !reflect.DeepEqual(w, g) {
672 if g, w := gen.outputDeps.Strings(), test.deps; !reflect.DeepEqual(w, g) {
676 if g, w := gen.outputFiles.Strings(), test.files; !reflect.DeepEqual(w, g) {