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

Function test_pdump

dpdk/app/test/test_pdump.c:203–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203int
204test_pdump(void)
205{
206 int ret = 0;
207 if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
208 printf("IN PRIMARY PROCESS\n");
209 ret = run_pdump_server_tests();
210 if (ret < 0)
211 return TEST_FAILED;
212 } else if (rte_eal_process_type() == RTE_PROC_SECONDARY) {
213 printf("IN SECONDARY PROCESS\n");
214 sleep(5);
215 ret = run_pdump_client_tests();
216 if (ret < 0)
217 return TEST_FAILED;
218 }
219 return TEST_SUCCESS;
220}
221
222REGISTER_FAST_TEST(pdump_autotest, true, false, test_pdump);

Callers

nothing calls this directly

Calls 4

rte_eal_process_typeFunction · 0.85
run_pdump_server_testsFunction · 0.85
run_pdump_client_testsFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected