Alexey Kardashevskiy | 04e9a20 | 2014-02-10 14:52:56 +1100 | [diff] [blame] | 1 | /* |
| 2 | * QTest testcase for SPAPR PHB |
| 3 | * |
| 4 | * Authors: |
| 5 | * Alexey Kardashevskiy <aik@ozlabs.ru> |
| 6 | * |
| 7 | * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 8 | * See the COPYING file in the top-level directory. |
| 9 | */ |
Peter Maydell | 681c28a | 2016-02-08 18:08:51 +0000 | [diff] [blame] | 10 | #include "qemu/osdep.h" |
Alexey Kardashevskiy | 04e9a20 | 2014-02-10 14:52:56 +1100 | [diff] [blame] | 11 | |
| 12 | #include "libqtest.h" |
| 13 | |
| 14 | #define TYPE_SPAPR_PCI_HOST_BRIDGE "spapr-pci-host-bridge" |
| 15 | |
| 16 | /* Tests only initialization so far. TODO: Replace with functional tests */ |
| 17 | static void test_phb_device(void) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | int main(int argc, char **argv) |
| 22 | { |
| 23 | int ret; |
| 24 | |
| 25 | g_test_init(&argc, &argv, NULL); |
| 26 | qtest_add_func("/spapr-phb/device", test_phb_device); |
| 27 | |
David Gibson | 357d1e3 | 2016-10-16 12:04:15 +1100 | [diff] [blame] | 28 | qtest_start("-device " TYPE_SPAPR_PCI_HOST_BRIDGE ",index=30"); |
Alexey Kardashevskiy | 04e9a20 | 2014-02-10 14:52:56 +1100 | [diff] [blame] | 29 | |
| 30 | ret = g_test_run(); |
| 31 | |
| 32 | qtest_end(); |
| 33 | |
| 34 | return ret; |
| 35 | } |