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

Function run_tests

dpdk/app/test/test_red.c:1731–1748  ·  view source on GitHub ↗

* function to execute the required_red tests */

Source from the content-addressed store, hash-verified

1729 * function to execute the required_red tests
1730 */
1731static void run_tests(struct tests *test_type, uint32_t test_count, uint32_t *num_tests, uint32_t *num_pass)
1732{
1733 enum test_result result = PASS;
1734 uint32_t i = 0;
1735
1736 for (i = 0; i < test_count; i++) {
1737 printf("\n--------------------------------------------------------------------------------\n");
1738 result = test_type[i].testfn(test_type[i].testcfg);
1739 (*num_tests)++;
1740 if (result == PASS) {
1741 (*num_pass)++;
1742 printf("-------------------------------------<pass>-------------------------------------\n");
1743 } else {
1744 printf("-------------------------------------<fail>-------------------------------------\n");
1745 }
1746 }
1747 return;
1748}
1749
1750/**
1751 * check if functions accept invalid parameters

Callers 3

test_redFunction · 0.70
test_red_perfFunction · 0.70
test_red_allFunction · 0.70

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected