Lines Matching refs:test_data

432 	static const struct port_expectation test_data[] = {  in tb_test_path_single_hop_walk()  local
452 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
453 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
454 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
456 test_data[i].type); in tb_test_path_single_hop_walk()
460 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
462 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_single_hop_walk()
464 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
465 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
466 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
468 test_data[i].type); in tb_test_path_single_hop_walk()
488 static const struct port_expectation test_data[] = { in tb_test_path_daisy_chain_walk() local
511 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
512 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
513 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
515 test_data[i].type); in tb_test_path_daisy_chain_walk()
519 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
521 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_daisy_chain_walk()
523 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk()
524 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
525 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
527 test_data[i].type); in tb_test_path_daisy_chain_walk()
549 static const struct port_expectation test_data[] = { in tb_test_path_simple_tree_walk() local
574 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
575 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
576 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_simple_tree_walk()
578 test_data[i].type); in tb_test_path_simple_tree_walk()
582 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
584 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_simple_tree_walk()
586 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk()
587 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_simple_tree_walk()
588 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_simple_tree_walk()
590 test_data[i].type); in tb_test_path_simple_tree_walk()
620 static const struct port_expectation test_data[] = { in tb_test_path_complex_tree_walk() local
658 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
659 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
660 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_complex_tree_walk()
662 test_data[i].type); in tb_test_path_complex_tree_walk()
666 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
668 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_complex_tree_walk()
670 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk()
671 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_complex_tree_walk()
672 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_complex_tree_walk()
674 test_data[i].type); in tb_test_path_complex_tree_walk()
711 static const struct port_expectation test_data[] = { in tb_test_path_max_length_walk() local
761 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
762 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
763 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_max_length_walk()
765 test_data[i].type); in tb_test_path_max_length_walk()
769 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
771 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_max_length_walk()
773 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_max_length_walk()
774 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_max_length_walk()
775 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_max_length_walk()
777 test_data[i].type); in tb_test_path_max_length_walk()
822 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane0() local
851 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane0()
852 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane0()
858 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
859 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane0()
861 test_data[i].in_type); in tb_test_path_not_bonded_lane0()
862 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
863 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane0()
865 test_data[i].out_type); in tb_test_path_not_bonded_lane0()
884 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1() local
913 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1()
914 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1()
920 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
921 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1()
923 test_data[i].in_type); in tb_test_path_not_bonded_lane1()
924 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
925 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1()
927 test_data[i].out_type); in tb_test_path_not_bonded_lane1()
948 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1_chain() local
993 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1_chain()
994 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1_chain()
1000 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
1001 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain()
1003 test_data[i].in_type); in tb_test_path_not_bonded_lane1_chain()
1004 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
1005 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1_chain()
1007 test_data[i].out_type); in tb_test_path_not_bonded_lane1_chain()
1028 static const struct hop_expectation test_data[] = { in tb_test_path_not_bonded_lane1_chain_reverse() local
1073 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane1_chain_reverse()
1074 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_not_bonded_lane1_chain_reverse()
1080 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1081 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1083 test_data[i].in_type); in tb_test_path_not_bonded_lane1_chain_reverse()
1084 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1085 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1087 test_data[i].out_type); in tb_test_path_not_bonded_lane1_chain_reverse()
1112 static const struct hop_expectation test_data[] = { in tb_test_path_mixed_chain() local
1165 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_mixed_chain()
1166 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_mixed_chain()
1172 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1173 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain()
1175 test_data[i].in_type); in tb_test_path_mixed_chain()
1176 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1177 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_mixed_chain()
1179 test_data[i].out_type); in tb_test_path_mixed_chain()
1204 static const struct hop_expectation test_data[] = { in tb_test_path_mixed_chain_reverse() local
1257 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_mixed_chain_reverse()
1258 for (i = 0; i < ARRAY_SIZE(test_data); i++) { in tb_test_path_mixed_chain_reverse()
1264 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1265 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain_reverse()
1267 test_data[i].in_type); in tb_test_path_mixed_chain_reverse()
1268 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1269 KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port); in tb_test_path_mixed_chain_reverse()
1271 test_data[i].out_type); in tb_test_path_mixed_chain_reverse()