Lines Matching defs:tests
29 } tests[] = {
113 for (i = 0; i < ARRAY_SIZE(tests); i++) {
120 expected_ret = at_egress && !at_tc ? tests[i].lwt_egress_ret : tests[i].ret;
122 tattr.data_in = tests[i].data_in;
123 tattr.data_size_in = tests[i].data_size_in;
126 bpf_obj->bss->ifindex = *tests[i].ifindex;
129 sprintf(buf, "err: %s [%s]", tests[i].msg, bpf_program__name(prog));
131 if (at_tc && tests[i].success_on_tc)
134 ASSERT_EQ(err, tests[i].err, buf);
135 sprintf(buf, "ret: %s [%s]", tests[i].msg, bpf_program__name(prog));
136 if (at_tc && tests[i].success_on_tc)