X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest%2Ftest_mp_secondary.c;h=26c4afd67fd47b564f8b1fc6bff31f513f01d3b7;hb=5d4e5dcd8a186778b3d78e27c81550d07a288fd2;hp=4dfe418e728390e2f14b49411b6e1b72a7b03cca;hpb=97f17497d162afdb82c8704bf097f0fee3724b2e;p=deb_dpdk.git diff --git a/app/test/test_mp_secondary.c b/app/test/test_mp_secondary.c index 4dfe418e..26c4afd6 100644 --- a/app/test/test_mp_secondary.c +++ b/app/test/test_mp_secondary.c @@ -245,6 +245,7 @@ run_object_creation_tests(void) printf("# Checked rte_lpm_create() OK\n"); #endif +#ifdef RTE_APP_TEST_RESOURCE_TAR /* Run a test_pci call */ if (test_pci() != 0) { printf("PCI scan failed in secondary\n"); @@ -252,6 +253,7 @@ run_object_creation_tests(void) return -1; } else printf("PCI scan succeeded in secondary\n"); +#endif return 0; } @@ -266,9 +268,11 @@ test_mp_secondary(void) { if (rte_eal_process_type() == RTE_PROC_PRIMARY) { if (!test_pci_run) { +#ifdef RTE_APP_TEST_RESOURCE_TAR printf("=== Running pre-requisite test of test_pci\n"); test_pci(); printf("=== Requisite test done\n"); +#endif } return run_secondary_instances(); } @@ -278,8 +282,4 @@ test_mp_secondary(void) return run_object_creation_tests(); } -static struct test_command multiprocess_cmd = { - .command = "multiprocess_autotest", - .callback = test_mp_secondary, -}; -REGISTER_TEST_COMMAND(multiprocess_cmd); +REGISTER_TEST_COMMAND(multiprocess_autotest, test_mp_secondary);