Lines Matching refs:test_data

490 	static const struct port_expectation test_data[] = {  in tb_test_path_single_hop_walk()  local
510 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
511 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
512 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
514 test_data[i].type); in tb_test_path_single_hop_walk()
518 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
520 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_single_hop_walk()
522 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
523 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
524 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
526 test_data[i].type); in tb_test_path_single_hop_walk()
546 static const struct port_expectation test_data[] = { in tb_test_path_daisy_chain_walk() local
569 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
570 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
571 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
573 test_data[i].type); in tb_test_path_daisy_chain_walk()
577 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
579 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_daisy_chain_walk()
581 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
582 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
583 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
585 test_data[i].type); in tb_test_path_daisy_chain_walk()
607 static const struct port_expectation test_data[] = { in tb_test_path_simple_tree_walk() local
632 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
633 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
634 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_simple_tree_walk()
636 test_data[i].type); in tb_test_path_simple_tree_walk()
640 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
642 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_simple_tree_walk()
644 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
645 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
646 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_simple_tree_walk()
648 test_data[i].type); in tb_test_path_simple_tree_walk()
678 static const struct port_expectation test_data[] = { in tb_test_path_complex_tree_walk() local
716 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
717 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
718 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_complex_tree_walk()
720 test_data[i].type); in tb_test_path_complex_tree_walk()
724 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
726 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_complex_tree_walk()
728 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
729 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
730 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_complex_tree_walk()
732 test_data[i].type); in tb_test_path_complex_tree_walk()
769 static const struct port_expectation test_data[] = { in tb_test_path_max_length_walk() local
819 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
820 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
821 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_max_length_walk()
823 test_data[i].type); in tb_test_path_max_length_walk()
827 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
829 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_max_length_walk()
831 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
832 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
833 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_max_length_walk()
835 test_data[i].type); in tb_test_path_max_length_walk()
880 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane0() local
909 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane0()
910 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane0()
916 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
917 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane0()
919 test_data[i].in_type); in tb_test_path_not_bonded_lane0()
920 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
921 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane0()
923 test_data[i].out_type); in tb_test_path_not_bonded_lane0()
942 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1() local
971 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1()
972 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1()
978 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
979 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1()
981 test_data[i].in_type); in tb_test_path_not_bonded_lane1()
982 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
983 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1()
985 test_data[i].out_type); in tb_test_path_not_bonded_lane1()
1006 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1_chain() local
1051 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1_chain()
1052 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1_chain()
1058 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
1059 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain()
1061 test_data[i].in_type); in tb_test_path_not_bonded_lane1_chain()
1062 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
1063 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1_chain()
1065 test_data[i].out_type); in tb_test_path_not_bonded_lane1_chain()
1086 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1_chain_reverse() local
1131 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1_chain_reverse()
1132 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1_chain_reverse()
1138 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1139 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1141 test_data[i].in_type); in tb_test_path_not_bonded_lane1_chain_reverse()
1142 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1143 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1145 test_data[i].out_type); in tb_test_path_not_bonded_lane1_chain_reverse()
1170 static const struct hop_expectation test_data[] = { in tb_test_path_mixed_chain() local
1223 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_mixed_chain()
1224 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_mixed_chain()
1230 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1231 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain()
1233 test_data[i].in_type); in tb_test_path_mixed_chain()
1234 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1235 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_mixed_chain()
1237 test_data[i].out_type); in tb_test_path_mixed_chain()
1262 static const struct hop_expectation test_data[] = { in tb_test_path_mixed_chain_reverse() local
1315 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_mixed_chain_reverse()
1316 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_mixed_chain_reverse()
1322 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1323 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain_reverse()
1325 test_data[i].in_type); in tb_test_path_mixed_chain_reverse()
1326 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1327 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_mixed_chain_reverse()
1329 test_data[i].out_type); in tb_test_path_mixed_chain_reverse()