Lines Matching refs:test_data

473 	static const struct port_expectation test_data[] = {  in tb_test_path_single_hop_walk()  local
493 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
494 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
495 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
497 test_data[i].type); in tb_test_path_single_hop_walk()
501 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
503 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_single_hop_walk()
505 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
506 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
507 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
509 test_data[i].type); in tb_test_path_single_hop_walk()
529 static const struct port_expectation test_data[] = { in tb_test_path_daisy_chain_walk() local
552 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
553 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
554 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
556 test_data[i].type); in tb_test_path_daisy_chain_walk()
560 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
562 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_daisy_chain_walk()
564 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
565 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
566 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
568 test_data[i].type); in tb_test_path_daisy_chain_walk()
590 static const struct port_expectation test_data[] = { in tb_test_path_simple_tree_walk() local
615 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
616 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
617 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_simple_tree_walk()
619 test_data[i].type); in tb_test_path_simple_tree_walk()
623 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
625 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_simple_tree_walk()
627 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
628 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
629 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_simple_tree_walk()
631 test_data[i].type); in tb_test_path_simple_tree_walk()
661 static const struct port_expectation test_data[] = { in tb_test_path_complex_tree_walk() local
699 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
700 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
701 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_complex_tree_walk()
703 test_data[i].type); in tb_test_path_complex_tree_walk()
707 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
709 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_complex_tree_walk()
711 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
712 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
713 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_complex_tree_walk()
715 test_data[i].type); in tb_test_path_complex_tree_walk()
752 static const struct port_expectation test_data[] = { in tb_test_path_max_length_walk() local
802 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
803 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
804 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_max_length_walk()
806 test_data[i].type); in tb_test_path_max_length_walk()
810 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
812 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_max_length_walk()
814 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
815 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
816 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_max_length_walk()
818 test_data[i].type); in tb_test_path_max_length_walk()
863 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane0() local
892 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane0()
893 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane0()
899 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
900 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane0()
902 test_data[i].in_type); in tb_test_path_not_bonded_lane0()
903 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
904 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane0()
906 test_data[i].out_type); in tb_test_path_not_bonded_lane0()
925 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1() local
954 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1()
955 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1()
961 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
962 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1()
964 test_data[i].in_type); in tb_test_path_not_bonded_lane1()
965 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
966 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1()
968 test_data[i].out_type); in tb_test_path_not_bonded_lane1()
989 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1_chain() local
1034 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1_chain()
1035 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1_chain()
1041 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
1042 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain()
1044 test_data[i].in_type); in tb_test_path_not_bonded_lane1_chain()
1045 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
1046 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1_chain()
1048 test_data[i].out_type); in tb_test_path_not_bonded_lane1_chain()
1069 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1_chain_reverse() local
1114 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1_chain_reverse()
1115 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1_chain_reverse()
1121 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1122 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1124 test_data[i].in_type); in tb_test_path_not_bonded_lane1_chain_reverse()
1125 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1126 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1128 test_data[i].out_type); in tb_test_path_not_bonded_lane1_chain_reverse()
1153 static const struct hop_expectation test_data[] = { in tb_test_path_mixed_chain() local
1206 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_mixed_chain()
1207 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_mixed_chain()
1213 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1214 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain()
1216 test_data[i].in_type); in tb_test_path_mixed_chain()
1217 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1218 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_mixed_chain()
1220 test_data[i].out_type); in tb_test_path_mixed_chain()
1245 static const struct hop_expectation test_data[] = { in tb_test_path_mixed_chain_reverse() local
1298 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_mixed_chain_reverse()
1299 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_mixed_chain_reverse()
1305 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1306 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain_reverse()
1308 test_data[i].in_type); in tb_test_path_mixed_chain_reverse()
1309 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1310 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_mixed_chain_reverse()
1312 test_data[i].out_type); in tb_test_path_mixed_chain_reverse()