xref: /openbmc/qemu/tests/qtest/ioh3420-test.c (revision e021e6fe)
1*1e8a1faeSThomas Huth /*
2*1e8a1faeSThomas Huth  * QTest testcase for Intel X58 north bridge IOH
3*1e8a1faeSThomas Huth  *
4*1e8a1faeSThomas Huth  * Copyright (c) 2014 SUSE LINUX Products GmbH
5*1e8a1faeSThomas Huth  *
6*1e8a1faeSThomas Huth  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7*1e8a1faeSThomas Huth  * See the COPYING file in the top-level directory.
8*1e8a1faeSThomas Huth  */
9*1e8a1faeSThomas Huth 
10*1e8a1faeSThomas Huth #include "qemu/osdep.h"
11*1e8a1faeSThomas Huth #include "libqtest-single.h"
12*1e8a1faeSThomas Huth 
13*1e8a1faeSThomas Huth /* Tests only initialization so far. TODO: Replace with functional tests */
nop(void)14*1e8a1faeSThomas Huth static void nop(void)
15*1e8a1faeSThomas Huth {
16*1e8a1faeSThomas Huth }
17*1e8a1faeSThomas Huth 
main(int argc,char ** argv)18*1e8a1faeSThomas Huth int main(int argc, char **argv)
19*1e8a1faeSThomas Huth {
20*1e8a1faeSThomas Huth     int ret;
21*1e8a1faeSThomas Huth 
22*1e8a1faeSThomas Huth     g_test_init(&argc, &argv, NULL);
23*1e8a1faeSThomas Huth     qtest_add_func("/ioh3420/nop", nop);
24*1e8a1faeSThomas Huth 
25*1e8a1faeSThomas Huth     qtest_start("-machine q35 -device ioh3420,bus=pcie.0,addr=1c.0,port=1,"
26*1e8a1faeSThomas Huth                 "chassis=1,multifunction=on");
27*1e8a1faeSThomas Huth     ret = g_test_run();
28*1e8a1faeSThomas Huth 
29*1e8a1faeSThomas Huth     qtest_end();
30*1e8a1faeSThomas Huth 
31*1e8a1faeSThomas Huth     return ret;
32*1e8a1faeSThomas Huth }
33