Imported Upstream version 17.05
[deb_dpdk.git] / test / test / test_mp_secondary.c
similarity index 94%
rename from app/test/test_mp_secondary.c
rename to test/test/test_mp_secondary.c
index 26c4afd..94042e5 100644 (file)
@@ -245,16 +245,6 @@ 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");
-               if (getuid() == 0) /* pci scans can fail as non-root */
-                       return -1;
-       } else
-               printf("PCI scan succeeded in secondary\n");
-#endif
-
        return 0;
 }
 
@@ -267,13 +257,6 @@ int
 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();
        }