From: Jan Viktorin Date: Mon, 13 Jun 2016 15:07:43 +0000 (+0200) Subject: app/test: rename PCI blacklist test case X-Git-Tag: spdx-start~6770 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ceabf73721bf77592a5bc47ac8e66e6bd346a2b2;p=dpdk.git app/test: rename PCI blacklist test case The current test_pci is just a single test case that tests the blacklisting of devices. Rename it to test_pci_blacklist and call it from the test_pci. The setup and cleanup are moved out of the test_pci_blacklist entirely to cover all other tests. Signed-off-by: Jan Viktorin --- diff --git a/app/test/test_pci.c b/app/test/test_pci.c index 50078a094d..28d710b24e 100644 --- a/app/test/test_pci.c +++ b/app/test/test_pci.c @@ -178,17 +178,14 @@ test_pci_cleanup(void) return 0; } -int -test_pci(void) +static int +test_pci_blacklist(void) { struct rte_devargs_list save_devargs_list; printf("Dump all devices\n"); rte_eal_pci_dump(stdout); - if (test_pci_setup()) - return -1; - rte_eal_pci_register(&my_driver); rte_eal_pci_register(&my_driver2); @@ -224,6 +221,18 @@ test_pci(void) rte_eal_pci_unregister(&my_driver); rte_eal_pci_unregister(&my_driver2); + return 0; +} + +int +test_pci(void) +{ + if (test_pci_setup()) + return -1; + + if (test_pci_blacklist()) + return -1; + if (test_pci_cleanup()) return -1;