aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vpp
AgeCommit message (Expand)AuthorFilesLines
2018-09-14Add dot1q-ip4base-[ndrpdr|mrr] perf tests for 2-node topologyJan Gelety14-13/+1120
2018-09-10Create l2bdscale tests for 2-node topologyJan Gelety38-397/+1983
2018-09-07CSIT-1272: Fix VTS testsTibor Frank6-6/+6
2018-09-07Create ip6scale tests for 2-node topologyJan Gelety24-162/+1734
2018-09-06Fix autogen violationsVratko Polak4-76/+124
2018-09-05Create ip4scale tests for 2-node topologyJan Gelety24-138/+1722
2018-09-05CSIT-1205 Create AVF driver testPeter Mikus4-0/+482
2018-09-05Add eth-ip4base-2memif[ndrpdr|mrr] perf tests for 2-node topologyJan Gelety10-0/+1468
2018-08-28Create ip4-feature perf tests for 2-node topologyJan Gelety144-846/+4337
2018-08-27FIX: Correction of ACL perf test suite documentationJan Gelety72-905/+840
2018-08-24VPP link bonding perf tests with two links between DUTsJan Gelety12-4/+687
2018-08-22CSIT-1164 Create VM vhost tests for 2-node topologyPeter Mikus36-0/+4946
2018-08-21FIX: Use correct interface type in x710_1lbvpplacp perf testsJan Gelety4-4/+4
2018-08-20Refactor VHOST codePeter Mikus99-1368/+622
2018-08-17CSIT-1245 - Wrong configuration of srv6proxy-ndrpdr-stat and srv6proxy-masq-n...Peter Mikus2-2/+2
2018-08-15FIX: Set default values for VTS teardown argumentsVratko Polak6-6/+18
2018-08-10CSIT-1156 Create container memif tests for 2-node topologyPeter Mikus28-34/+1210
2018-08-10CSIT-1193 De-duplicate bootstrap scripts into onePeter Mikus1-0/+9
2018-08-06CSIT_VIRL phased migration, prio P0 - apply SKIP_VPP_PATCH tagJan Gelety9-14/+16
2018-08-03Fix ommissions from recent ChangesVratko Polak2-0/+153
2018-07-27FIX: Interface up handlingPeter Mikus8-16/+0
2018-07-25Add MTU handling into perf testsPeter Mikus45-45/+11
2018-07-24CSIT-1097: Migrate L2 to NDRPDR and edit MRRVratko Polak168-7320/+13484
2018-07-24CSIT-1202: Unify min_rateVratko Polak3-3/+3
2018-07-24CSIT-1097: Unify max NIC bandwidth in ip4Peter Mikus4-15/+12
2018-07-24CSIT-1097: Migrate Vts suite to NDRPDRVratko Polak11-287/+1020
2018-07-24CSIT-1097: Migrate ip4 to NDRPDR and edit MRRVratko Polak152-6875/+12460
2018-07-24CSIT-1097: Migrate vm_vhost to NDRPDR and edit MRRVratko Polak126-11852/+10058
2018-07-20CSIT-1097: Migrate ip4_tun to NDRPDR and edit MRRVratko Polak19-2380/+1358
2018-07-20CSIT-1097: Migrate memif to NDRPDR and edit MRRVratko Polak26-1325/+1849
2018-07-18CSIT-1097: Crypto NDRPDR and missing MRR suitesVratko Polak34-3613/+2873
2018-07-18CSIT-1097: Ip6 NDRPDR and edited MRR suitesVratko Polak38-3775/+2413
2018-07-18CSIT-1201 Create L2patch perf testsPeter Mikus10-0/+1298
2018-07-17CSIT-1186: Add MRR and NDRPDR ip6_tunnels testsVratko Polak7-1192/+566
2018-07-17CSIT-1186: Add srv6 NDRPDR suitesVratko Polak13-620/+616
2018-07-16Add L2xc/L2bd/Ip4/Ip6 2-node tests for x710Peter Mikus16-0/+2107
2018-07-16FIX: VTS suitePeter Mikus1-24/+24
2018-07-13Refactor perf test casesPeter Mikus310-29595/+6628
2018-07-11CSIT-1178: Prepare for bursty MRRVratko Polak127-129/+127
2018-07-10Remove THIS tag and use unix endlinesVratko Polak4-1160/+1160
2018-07-09FIX: use correct match_n_vectors value in IPx iACL TC03Jan Gelety2-2/+2
2018-07-09CSIT-1142 Change thread perf test TAGsPeter Mikus310-7221/+7221
2018-07-09CSIT-1142 2-node topology - keywordsPeter Mikus307-842/+842
2018-07-03VTS VXLAN vhost-user with single DUT, TG sends VXLANPeter Ginchev1-0/+329
2018-07-03CSIT-1046 Make uio driver configurable from topofilesPeter Mikus1-3/+1
2018-07-02Compatibility fixes with Ubuntu 18.04Peter Mikus1-1/+3
2018-06-29SetupFramework to detect failures, part IIPeter Mikus1-0/+2
2018-06-15CSIT-1085 eth-l2xcbase-eth-1memif-1dcrPeter Mikus4-0/+1160
2018-06-13FIX: TAG processingPeter Mikus2-2/+2
2018-06-08CSIT-1081 Container VPP configuration refactorPeter Mikus17-0/+17
rt, rb_node (rt, rt->root), search_key); RBTREE_TEST (n->key == search_key, "search result should be %u", search_key); search_key += 1; n = rb_tree_search_subtree (rt, rb_node (rt, rt->root), search_key); RBTREE_TEST (n->key == search_key, "search result should be %u", search_key); aux = rb_tree_successor (rt, n); RBTREE_TEST (aux->key == search_key + 1, "successor should be %u is %u", search_key + 1, aux->key); aux = rb_tree_predecessor (rt, n); RBTREE_TEST (aux->key == search_key - 1, "predecessor should be %u is %u", search_key - 1, aux->key); /* * Delete all keys */ for (i = 0; i < n_keys; i++) { rb_tree_del (rt, i); if (rt->nodes[RBTREE_TNIL_INDEX].color != RBTREE_BLACK) RBTREE_TEST (0, "tnil should be black"); } RBTREE_TEST (rb_tree_n_nodes (rt) == 1, "number nodes %u is %u", 1, rb_tree_n_nodes (rt)); n = rb_tree_min_subtree (rt, rb_node (rt, rt->root)); RBTREE_TEST (rb_node_is_tnil (rt, n), "min should be tnil"); n = rb_tree_max_subtree (rt, rb_node (rt, rt->root)); RBTREE_TEST (rb_node_is_tnil (rt, n), "max should be tnil"); search_key = 2 * ((n_keys - 1) / 4); n = rb_tree_search_subtree (rt, rb_node (rt, rt->root), search_key); RBTREE_TEST (rb_node_is_tnil (rt, n), "search result should be tnil"); /* * Test successor/predecessor */ u8 test_vals[] = { 2, 3, 4, 6, 7, 9, 13, 15, 17, 18, 20 }; for (i = 0; i < sizeof (test_vals) / sizeof (u8); i++) rb_tree_add (rt, test_vals[i]); search_key = 13; n = rb_tree_search_subtree (rt, rb_node (rt, rt->root), search_key); RBTREE_TEST (n->key == search_key, "search result should be %u", search_key); aux = rb_tree_successor (rt, n); RBTREE_TEST (aux->key == 15, "successor should be %u is %u", 15, aux->key); aux = rb_tree_predecessor (rt, n); RBTREE_TEST (aux->key == 9, "predecessor should be %u is %u", 9, aux->key); n = aux; aux = rb_tree_predecessor (rt, n); RBTREE_TEST (aux->key == 7, "predecessor should be %u is %u", 7, aux->key); /* * Cleanup */ rb_tree_free_nodes (rt); RBTREE_TEST (rb_tree_n_nodes (rt) == 0, "number nodes %u is %u", 0, rb_tree_n_nodes (rt)); return 0; } static clib_error_t * rbtree_test (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd_arg) { int res = 0; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "basic")) { res = rbtree_test_basic (vm, input); } else if (unformat (input, "all")) { if ((res = rbtree_test_basic (vm, input))) goto done; } else break; } done: if (res) return clib_error_return (0, "rbtree unit test failed"); return 0; } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (rbtree_test_command, static) = { .path = "test rbtree", .short_help = "internal rbtree unit tests", .function = rbtree_test, }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */