Lines Matching refs:ASSERT_EQ
38 ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1"); in serial_test_tc_opts_basic()
39 ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2"); in serial_test_tc_opts_basic()
42 if (!ASSERT_EQ(err, 0, "prog_attach")) in serial_test_tc_opts_basic()
57 ASSERT_EQ(optq.count, 1, "count"); in serial_test_tc_opts_basic()
58 ASSERT_EQ(optq.revision, 2, "revision"); in serial_test_tc_opts_basic()
59 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in serial_test_tc_opts_basic()
60 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in serial_test_tc_opts_basic()
65 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in serial_test_tc_opts_basic()
66 ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2"); in serial_test_tc_opts_basic()
69 if (!ASSERT_EQ(err, 0, "prog_attach")) in serial_test_tc_opts_basic()
82 ASSERT_EQ(optq.count, 1, "count"); in serial_test_tc_opts_basic()
83 ASSERT_EQ(optq.revision, 2, "revision"); in serial_test_tc_opts_basic()
84 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in serial_test_tc_opts_basic()
85 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in serial_test_tc_opts_basic()
90 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in serial_test_tc_opts_basic()
91 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in serial_test_tc_opts_basic()
142 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_before_target()
148 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_before_target()
162 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_before_target()
163 ASSERT_EQ(optq.revision, 3, "revision"); in test_tc_opts_before_target()
164 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_before_target()
165 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_before_target()
166 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_before_target()
171 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_before_target()
172 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_before_target()
173 ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3"); in test_tc_opts_before_target()
174 ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4"); in test_tc_opts_before_target()
182 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_before_target()
192 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_before_target()
193 ASSERT_EQ(optq.revision, 4, "revision"); in test_tc_opts_before_target()
194 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_before_target()
195 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_before_target()
196 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_before_target()
197 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_before_target()
205 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_before_target()
217 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_before_target()
218 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_before_target()
219 ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]"); in test_tc_opts_before_target()
220 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_before_target()
221 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_before_target()
222 ASSERT_EQ(optq.prog_ids[3], id2, "prog_ids[3]"); in test_tc_opts_before_target()
223 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_before_target()
228 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_before_target()
229 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_before_target()
230 ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3"); in test_tc_opts_before_target()
231 ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4"); in test_tc_opts_before_target()
294 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_after_target()
300 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_after_target()
314 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_after_target()
315 ASSERT_EQ(optq.revision, 3, "revision"); in test_tc_opts_after_target()
316 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
317 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_after_target()
318 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_after_target()
323 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_after_target()
324 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_after_target()
325 ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3"); in test_tc_opts_after_target()
326 ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4"); in test_tc_opts_after_target()
334 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_after_target()
344 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_after_target()
345 ASSERT_EQ(optq.revision, 4, "revision"); in test_tc_opts_after_target()
346 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
347 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_after_target()
348 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_after_target()
349 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_after_target()
357 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_after_target()
369 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_after_target()
370 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_after_target()
371 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
372 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_after_target()
373 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_after_target()
374 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_after_target()
375 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_after_target()
380 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_after_target()
381 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_after_target()
382 ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3"); in test_tc_opts_after_target()
383 ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4"); in test_tc_opts_after_target()
397 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_after_target()
398 ASSERT_EQ(optq.revision, 6, "revision"); in test_tc_opts_after_target()
399 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
400 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_after_target()
401 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_after_target()
402 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_after_target()
416 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_after_target()
417 ASSERT_EQ(optq.revision, 7, "revision"); in test_tc_opts_after_target()
418 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
419 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_after_target()
420 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_after_target()
434 ASSERT_EQ(optq.count, 1, "count"); in test_tc_opts_after_target()
435 ASSERT_EQ(optq.revision, 8, "revision"); in test_tc_opts_after_target()
436 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
437 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_after_target()
483 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_revision_target()
493 if (!ASSERT_EQ(err, -ESTALE, "prog_attach")) in test_tc_opts_revision_target()
503 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_revision_target()
517 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_revision_target()
518 ASSERT_EQ(optq.revision, 3, "revision"); in test_tc_opts_revision_target()
519 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_revision_target()
520 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_revision_target()
521 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_revision_target()
526 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_revision_target()
527 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_revision_target()
534 ASSERT_EQ(err, -ESTALE, "prog_detach"); in test_tc_opts_revision_target()
609 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_chain_classic()
613 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_chain_classic()
621 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_chain_classic()
622 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_chain_classic()
623 ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3"); in test_tc_chain_classic()
634 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_chain_classic()
635 ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2"); in test_tc_chain_classic()
636 ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3"); in test_tc_chain_classic()
698 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_replace_target()
710 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_replace_target()
728 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_replace_target()
729 ASSERT_EQ(optq.revision, 3, "revision"); in test_tc_opts_replace_target()
730 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_replace_target()
731 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_replace_target()
732 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_replace_target()
734 ASSERT_EQ(optq.prog_attach_flags[0], 0, "prog_flags[0]"); in test_tc_opts_replace_target()
735 ASSERT_EQ(optq.prog_attach_flags[1], 0, "prog_flags[1]"); in test_tc_opts_replace_target()
736 ASSERT_EQ(optq.prog_attach_flags[2], 0, "prog_flags[2]"); in test_tc_opts_replace_target()
741 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_replace_target()
742 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_replace_target()
743 ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3"); in test_tc_opts_replace_target()
752 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_replace_target()
766 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_replace_target()
767 ASSERT_EQ(optq.revision, 4, "revision"); in test_tc_opts_replace_target()
768 ASSERT_EQ(optq.prog_ids[0], id3, "prog_ids[0]"); in test_tc_opts_replace_target()
769 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_replace_target()
770 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_replace_target()
775 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_replace_target()
776 ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2"); in test_tc_opts_replace_target()
777 ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3"); in test_tc_opts_replace_target()
787 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_replace_target()
801 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_replace_target()
802 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_replace_target()
803 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_replace_target()
804 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_replace_target()
805 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_replace_target()
810 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_replace_target()
811 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_replace_target()
812 ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3"); in test_tc_opts_replace_target()
820 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_replace_target()
831 ASSERT_EQ(err, -ERANGE, "prog_attach"); in test_tc_opts_replace_target()
842 ASSERT_EQ(err, -ERANGE, "prog_attach"); in test_tc_opts_replace_target()
900 ASSERT_EQ(err, -ERANGE, "prog_attach"); in test_tc_opts_invalid_target()
908 ASSERT_EQ(err, -ENOENT, "prog_attach"); in test_tc_opts_invalid_target()
916 ASSERT_EQ(err, -ENOENT, "prog_attach"); in test_tc_opts_invalid_target()
924 ASSERT_EQ(err, -EINVAL, "prog_attach"); in test_tc_opts_invalid_target()
933 ASSERT_EQ(err, -ENOENT, "prog_attach"); in test_tc_opts_invalid_target()
942 ASSERT_EQ(err, -EINVAL, "prog_attach"); in test_tc_opts_invalid_target()
951 ASSERT_EQ(err, -ENOENT, "prog_attach"); in test_tc_opts_invalid_target()
960 ASSERT_EQ(err, -ENOENT, "prog_attach"); in test_tc_opts_invalid_target()
966 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_invalid_target()
974 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_invalid_target()
983 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_invalid_target()
992 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_invalid_target()
1001 ASSERT_EQ(err, -EINVAL, "prog_attach_x1"); in test_tc_opts_invalid_target()
1010 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_invalid_target()
1057 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_prepend_target()
1067 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_prepend_target()
1081 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_prepend_target()
1082 ASSERT_EQ(optq.revision, 3, "revision"); in test_tc_opts_prepend_target()
1083 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_prepend_target()
1084 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_prepend_target()
1085 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_prepend_target()
1090 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_prepend_target()
1091 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_prepend_target()
1092 ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3"); in test_tc_opts_prepend_target()
1093 ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4"); in test_tc_opts_prepend_target()
1100 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_prepend_target()
1108 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_prepend_target()
1120 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_prepend_target()
1121 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_prepend_target()
1122 ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]"); in test_tc_opts_prepend_target()
1123 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_prepend_target()
1124 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_prepend_target()
1125 ASSERT_EQ(optq.prog_ids[3], id1, "prog_ids[3]"); in test_tc_opts_prepend_target()
1126 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_prepend_target()
1131 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_prepend_target()
1132 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_prepend_target()
1133 ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3"); in test_tc_opts_prepend_target()
1134 ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4"); in test_tc_opts_prepend_target()
1197 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_append_target()
1207 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_append_target()
1221 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_append_target()
1222 ASSERT_EQ(optq.revision, 3, "revision"); in test_tc_opts_append_target()
1223 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_append_target()
1224 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_append_target()
1225 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_append_target()
1230 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_append_target()
1231 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_append_target()
1232 ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3"); in test_tc_opts_append_target()
1233 ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4"); in test_tc_opts_append_target()
1240 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_append_target()
1248 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_append_target()
1260 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_append_target()
1261 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_append_target()
1262 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_append_target()
1263 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_append_target()
1264 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_append_target()
1265 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_append_target()
1266 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_append_target()
1271 ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1"); in test_tc_opts_append_target()
1272 ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2"); in test_tc_opts_append_target()
1273 ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3"); in test_tc_opts_append_target()
1274 ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4"); in test_tc_opts_append_target()
1340 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_dev_cleanup_target()
1346 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_dev_cleanup_target()
1352 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_dev_cleanup_target()
1358 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_dev_cleanup_target()
1364 ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed"); in test_tc_opts_dev_cleanup_target()
1365 ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed"); in test_tc_opts_dev_cleanup_target()
1386 ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed"); in test_tc_opts_dev_cleanup_target()
1387 ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed"); in test_tc_opts_dev_cleanup_target()
1413 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_opts_mixed_target()
1415 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_opts_mixed_target()
1417 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_opts_mixed_target()
1419 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_opts_mixed_target()
1439 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_mixed_target()
1462 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_mixed_target()
1473 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_mixed_target()
1484 ASSERT_EQ(err, -EBUSY, "prog_attach"); in test_tc_opts_mixed_target()
1495 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_mixed_target()
1518 ASSERT_EQ(err, -EEXIST, "prog_attach"); in test_tc_opts_mixed_target()
1535 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_mixed_target()
1536 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_mixed_target()
1537 ASSERT_EQ(optq.prog_ids[0], pid3, "prog_ids[0]"); in test_tc_opts_mixed_target()
1538 ASSERT_EQ(optq.prog_attach_flags[0], 0, "prog_flags[0]"); in test_tc_opts_mixed_target()
1539 ASSERT_EQ(optq.link_ids[0], 0, "link_ids[0]"); in test_tc_opts_mixed_target()
1540 ASSERT_EQ(optq.link_attach_flags[0], 0, "link_flags[0]"); in test_tc_opts_mixed_target()
1541 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]"); in test_tc_opts_mixed_target()
1542 ASSERT_EQ(optq.prog_attach_flags[1], 0, "prog_flags[1]"); in test_tc_opts_mixed_target()
1543 ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]"); in test_tc_opts_mixed_target()
1544 ASSERT_EQ(optq.link_attach_flags[1], 0, "link_flags[1]"); in test_tc_opts_mixed_target()
1545 ASSERT_EQ(optq.prog_ids[2], pid4, "prog_ids[2]"); in test_tc_opts_mixed_target()
1546 ASSERT_EQ(optq.prog_attach_flags[2], 0, "prog_flags[2]"); in test_tc_opts_mixed_target()
1547 ASSERT_EQ(optq.link_ids[2], lid4, "link_ids[2]"); in test_tc_opts_mixed_target()
1548 ASSERT_EQ(optq.link_attach_flags[2], 0, "link_flags[2]"); in test_tc_opts_mixed_target()
1549 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_mixed_target()
1550 ASSERT_EQ(optq.prog_attach_flags[3], 0, "prog_flags[3]"); in test_tc_opts_mixed_target()
1551 ASSERT_EQ(optq.link_ids[3], 0, "link_ids[3]"); in test_tc_opts_mixed_target()
1552 ASSERT_EQ(optq.link_attach_flags[3], 0, "link_flags[3]"); in test_tc_opts_mixed_target()
1586 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_opts_demixed_target()
1588 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_opts_demixed_target()
1603 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_demixed_target()
1620 ASSERT_EQ(err, -EBUSY, "prog_detach"); in test_tc_opts_demixed_target()
1682 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_target()
1688 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_target()
1694 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_target()
1700 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_target()
1714 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_detach_target()
1715 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_detach_target()
1716 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_target()
1717 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_detach_target()
1718 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_detach_target()
1719 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_detach_target()
1720 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_detach_target()
1738 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_detach_target()
1739 ASSERT_EQ(optq.revision, 6, "revision"); in test_tc_opts_detach_target()
1740 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_detach_target()
1741 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_target()
1742 ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]"); in test_tc_opts_detach_target()
1743 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_detach_target()
1761 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_detach_target()
1762 ASSERT_EQ(optq.revision, 7, "revision"); in test_tc_opts_detach_target()
1763 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_detach_target()
1764 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_target()
1765 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_detach_target()
1782 ASSERT_EQ(err, -ENOENT, "prog_detach"); in test_tc_opts_detach_target()
1789 ASSERT_EQ(err, -ENOENT, "prog_detach"); in test_tc_opts_detach_target()
1853 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_before_target()
1859 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_before_target()
1865 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_before_target()
1871 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_before_target()
1885 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_detach_before_target()
1886 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_detach_before_target()
1887 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1888 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_detach_before_target()
1889 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_detach_before_target()
1890 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_detach_before_target()
1891 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_detach_before_target()
1910 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_detach_before_target()
1911 ASSERT_EQ(optq.revision, 6, "revision"); in test_tc_opts_detach_before_target()
1912 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1913 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_before_target()
1914 ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]"); in test_tc_opts_detach_before_target()
1915 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_detach_before_target()
1923 ASSERT_EQ(err, -ENOENT, "prog_detach"); in test_tc_opts_detach_before_target()
1932 ASSERT_EQ(err, -ERANGE, "prog_detach"); in test_tc_opts_detach_before_target()
1941 ASSERT_EQ(err, -ENOENT, "prog_detach"); in test_tc_opts_detach_before_target()
1961 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_detach_before_target()
1962 ASSERT_EQ(optq.revision, 7, "revision"); in test_tc_opts_detach_before_target()
1963 ASSERT_EQ(optq.prog_ids[0], id3, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1964 ASSERT_EQ(optq.prog_ids[1], id4, "prog_ids[1]"); in test_tc_opts_detach_before_target()
1965 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_detach_before_target()
1984 ASSERT_EQ(optq.count, 1, "count"); in test_tc_opts_detach_before_target()
1985 ASSERT_EQ(optq.revision, 8, "revision"); in test_tc_opts_detach_before_target()
1986 ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1987 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_detach_before_target()
2060 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_after_target()
2066 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_after_target()
2072 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_after_target()
2078 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_detach_after_target()
2092 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_detach_after_target()
2093 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_detach_after_target()
2094 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2095 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2096 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_detach_after_target()
2097 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_detach_after_target()
2098 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_detach_after_target()
2117 ASSERT_EQ(optq.count, 3, "count"); in test_tc_opts_detach_after_target()
2118 ASSERT_EQ(optq.revision, 6, "revision"); in test_tc_opts_detach_after_target()
2119 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2120 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2121 ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]"); in test_tc_opts_detach_after_target()
2122 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_detach_after_target()
2130 ASSERT_EQ(err, -ENOENT, "prog_detach"); in test_tc_opts_detach_after_target()
2139 ASSERT_EQ(err, -ERANGE, "prog_detach"); in test_tc_opts_detach_after_target()
2148 ASSERT_EQ(err, -ERANGE, "prog_detach"); in test_tc_opts_detach_after_target()
2157 ASSERT_EQ(err, -ERANGE, "prog_detach"); in test_tc_opts_detach_after_target()
2177 ASSERT_EQ(optq.count, 2, "count"); in test_tc_opts_detach_after_target()
2178 ASSERT_EQ(optq.revision, 7, "revision"); in test_tc_opts_detach_after_target()
2179 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2180 ASSERT_EQ(optq.prog_ids[1], id4, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2181 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_detach_after_target()
2200 ASSERT_EQ(optq.count, 1, "count"); in test_tc_opts_detach_after_target()
2201 ASSERT_EQ(optq.revision, 8, "revision"); in test_tc_opts_detach_after_target()
2202 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2203 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2260 ASSERT_EQ(err, -ENOENT, "prog_detach"); in test_tc_opts_delete_empty()
2316 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_chain_mixed()
2326 ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4"); in test_tc_chain_mixed()
2327 ASSERT_EQ(skel->bss->seen_tc5, false, "seen_tc5"); in test_tc_chain_mixed()
2328 ASSERT_EQ(skel->bss->seen_tc6, true, "seen_tc6"); in test_tc_chain_mixed()
2336 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_chain_mixed()
2346 ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4"); in test_tc_chain_mixed()
2347 ASSERT_EQ(skel->bss->seen_tc5, true, "seen_tc5"); in test_tc_chain_mixed()
2348 ASSERT_EQ(skel->bss->seen_tc6, false, "seen_tc6"); in test_tc_chain_mixed()
2358 ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4"); in test_tc_chain_mixed()
2359 ASSERT_EQ(skel->bss->seen_tc5, true, "seen_tc5"); in test_tc_chain_mixed()
2360 ASSERT_EQ(skel->bss->seen_tc6, false, "seen_tc6"); in test_tc_chain_mixed()
2422 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_max_target()
2438 ASSERT_EQ(err, -ERANGE, "prog_64_attach"); in test_tc_opts_max_target()
2445 ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed"); in test_tc_opts_max_target()
2446 ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed"); in test_tc_opts_max_target()
2494 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_query_target()
2504 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_query_target()
2514 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_query_target()
2524 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_query_target()
2534 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_query_target()
2535 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_query_target()
2536 ASSERT_EQ(optq.prog_ids, NULL, "prog_ids"); in test_tc_opts_query_target()
2537 ASSERT_EQ(optq.link_ids, NULL, "link_ids"); in test_tc_opts_query_target()
2546 ASSERT_EQ(optq.count, 4, "count"); in test_tc_opts_query_target()
2547 ASSERT_EQ(optq.revision, 5, "revision"); in test_tc_opts_query_target()
2548 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2549 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2550 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_query_target()
2551 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_query_target()
2552 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2553 ASSERT_EQ(optq.link_ids, NULL, "link_ids"); in test_tc_opts_query_target()
2564 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2565 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2566 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2567 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2568 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2569 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2570 ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids"); in test_tc_opts_query_target()
2571 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
2572 ASSERT_EQ(attr.query.link_ids, 0, "link_ids"); in test_tc_opts_query_target()
2573 ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags"); in test_tc_opts_query_target()
2582 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2583 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2584 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2585 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2586 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2587 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2588 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2589 ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2590 ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2591 ASSERT_EQ(prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_query_target()
2592 ASSERT_EQ(prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_query_target()
2593 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2594 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
2595 ASSERT_EQ(attr.query.link_ids, 0, "link_ids"); in test_tc_opts_query_target()
2596 ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags"); in test_tc_opts_query_target()
2608 ASSERT_EQ(err, -1, "prog_query_should_fail"); in test_tc_opts_query_target()
2609 ASSERT_EQ(errno, ENOSPC, "prog_query_should_fail"); in test_tc_opts_query_target()
2611 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2612 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2613 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2614 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2615 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2616 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2617 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2618 ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2619 ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2620 ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_query_target()
2621 ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_query_target()
2622 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2623 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
2624 ASSERT_EQ(attr.query.link_ids, 0, "link_ids"); in test_tc_opts_query_target()
2625 ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags"); in test_tc_opts_query_target()
2640 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2641 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2642 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2643 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2644 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2645 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2646 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2647 ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2648 ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2649 ASSERT_EQ(prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_query_target()
2650 ASSERT_EQ(prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_query_target()
2651 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2652 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
2653 ASSERT_EQ(attr.query.link_ids, 0, "link_ids"); in test_tc_opts_query_target()
2654 ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags"); in test_tc_opts_query_target()
2668 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2669 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2670 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2671 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2672 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2673 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2674 ASSERT_EQ(prog_ids[0], 0, "prog_ids[0]"); in test_tc_opts_query_target()
2675 ASSERT_EQ(prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_query_target()
2676 ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_query_target()
2677 ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_query_target()
2678 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2679 ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids"); in test_tc_opts_query_target()
2680 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
2681 ASSERT_EQ(attr.query.link_ids, 0, "link_ids"); in test_tc_opts_query_target()
2682 ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags"); in test_tc_opts_query_target()
2696 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2697 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2698 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2699 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2700 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2701 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2702 ASSERT_EQ(prog_ids[0], 0, "prog_ids[0]"); in test_tc_opts_query_target()
2703 ASSERT_EQ(prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_query_target()
2704 ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_query_target()
2705 ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_query_target()
2706 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2707 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2708 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
2709 ASSERT_EQ(attr.query.link_ids, 0, "link_ids"); in test_tc_opts_query_target()
2710 ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags"); in test_tc_opts_query_target()
2717 ASSERT_EQ(err, -1, "prog_query_should_fail"); in test_tc_opts_query_target()
2718 ASSERT_EQ(errno, EINVAL, "prog_query_should_fail"); in test_tc_opts_query_target()
2724 ASSERT_EQ(err, -1, "prog_query_should_fail"); in test_tc_opts_query_target()
2725 ASSERT_EQ(errno, EINVAL, "prog_query_should_fail"); in test_tc_opts_query_target()
2778 ASSERT_EQ(optq.count, 0, "count"); in test_tc_opts_query_attach_target()
2779 ASSERT_EQ(optq.revision, 1, "revision"); in test_tc_opts_query_attach_target()
2786 if (!ASSERT_EQ(err, 0, "prog_attach")) in test_tc_opts_query_attach_target()
2797 ASSERT_EQ(optq.count, 1, "count"); in test_tc_opts_query_attach_target()
2798 ASSERT_EQ(optq.revision, 2, "revision"); in test_tc_opts_query_attach_target()
2799 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_attach_target()
2800 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_query_attach_target()