MCPcopy Create free account
hub / github.com/F-Stack/f-stack / run_tests

Function run_tests

dpdk/app/test/test_pie.c:949–972  ·  view source on GitHub ↗

* function to execute the required pie tests */

Source from the content-addressed store, hash-verified

947 * function to execute the required pie tests
948 */
949static void run_tests(struct tests *test_type, uint32_t test_count,
950 uint32_t *num_tests, uint32_t *num_pass)
951{
952 enum test_result result = PASS;
953 uint32_t i = 0;
954 static const char *bar_str = "-------------------------------------"
955 "-------------------------------------------";
956 static const char *bar_pass_str = "-------------------------------------"
957 "<pass>-------------------------------------";
958 static const char *bar_fail_str = "-------------------------------------"
959 "<fail>-------------------------------------";
960
961 for (i = 0; i < test_count; i++) {
962 printf("\n%s\n", bar_str);
963 result = test_type[i].testfn(test_type[i].testcfg);
964 (*num_tests)++;
965 if (result == PASS) {
966 (*num_pass)++;
967 printf("%s\n", bar_pass_str);
968 } else {
969 printf("%s\n", bar_fail_str);
970 }
971 }
972}
973
974/**
975 * check if functions accept invalid parameters

Callers 3

test_pieFunction · 0.70
test_pie_perfFunction · 0.70
test_pie_allFunction · 0.70

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected