xref: /qemu/tests/qtest/cxl-test.c (revision 33c47ab967558dfb02b3439b37e7dcfcdced0157)
1 /*
2  * QTest testcase for CXL
3  *
4  * This work is licensed under the terms of the GNU GPL, version 2 or later.
5  * See the COPYING file in the top-level directory.
6  */
7 
8 #include "qemu/osdep.h"
9 #include "libqtest-single.h"
10 
11 static void cxl_basic_pxb(void)
12 {
13     qtest_start("-machine q35,cxl=on -device pxb-cxl,bus=pcie.0");
14     qtest_end();
15 }
16 
17 int main(int argc, char **argv)
18 {
19     g_test_init(&argc, &argv, NULL);
20     qtest_add_func("/pci/cxl/basic_pxb", cxl_basic_pxb);
21     return g_test_run();
22 }
23