[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 15/46] qtest/cxl: Introduce initial test for pxb-cxl only.
From: |
Jonathan Cameron |
Subject: |
[PATCH v8 15/46] qtest/cxl: Introduce initial test for pxb-cxl only. |
Date: |
Fri, 18 Mar 2022 15:06:04 +0000 |
Initial test with just pxb-cxl. Other tests will be added
alongside functionality.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/qtest/cxl-test.c | 23 +++++++++++++++++++++++
tests/qtest/meson.build | 4 ++++
2 files changed, 27 insertions(+)
diff --git a/tests/qtest/cxl-test.c b/tests/qtest/cxl-test.c
new file mode 100644
index 0000000000..1006c8ae4e
--- /dev/null
+++ b/tests/qtest/cxl-test.c
@@ -0,0 +1,23 @@
+/*
+ * QTest testcase for CXL
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#include "qemu/osdep.h"
+#include "libqtest-single.h"
+
+
+static void cxl_basic_pxb(void)
+{
+ qtest_start("-machine q35,cxl=on -device pxb-cxl,bus=pcie.0");
+ qtest_end();
+}
+
+int main(int argc, char **argv)
+{
+ g_test_init(&argc, &argv, NULL);
+ qtest_add_func("/pci/cxl/basic_pxb", cxl_basic_pxb);
+ return g_test_run();
+}
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index d25f82bb5a..6e1ad4dc9a 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -41,6 +41,9 @@ qtests_pci = \
(config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : []) +
\
(config_all_devices.has_key('CONFIG_IVSHMEM_DEVICE') ? ['ivshmem-test'] : [])
+qtests_cxl = \
+ (config_all_devices.has_key('CONFIG_CXL') ? ['cxl-test'] : [])
+
qtests_i386 = \
(slirp.found() ? ['pxe-test', 'test-netfilter'] : []) + \
(config_host.has_key('CONFIG_POSIX') ? ['test-filter-mirror'] : []) +
\
@@ -75,6 +78,7 @@ qtests_i386 = \
slirp.found() ? ['virtio-net-failover'] : []) +
\
(unpack_edk2_blobs ? ['bios-tables-test'] : []) +
\
qtests_pci +
\
+ qtests_cxl +
\
['fdc-test',
'ide-test',
'hd-geo-test',
--
2.32.0
- [PATCH v8 05/46] hw/cxl/device: Implement the CAP array (8.2.8.1-2), (continued)
- [PATCH v8 05/46] hw/cxl/device: Implement the CAP array (8.2.8.1-2), Jonathan Cameron, 2022/03/18
- [PATCH v8 06/46] hw/cxl/device: Implement basic mailbox (8.2.8.4), Jonathan Cameron, 2022/03/18
- [PATCH v8 07/46] hw/cxl/device: Add memory device utilities, Jonathan Cameron, 2022/03/18
- [PATCH v8 08/46] hw/cxl/device: Add cheap EVENTS implementation (8.2.9.1), Jonathan Cameron, 2022/03/18
- [PATCH v8 09/46] hw/cxl/device: Timestamp implementation (8.2.9.3), Jonathan Cameron, 2022/03/18
- [PATCH v8 10/46] hw/cxl/device: Add log commands (8.2.9.4) + CEL, Jonathan Cameron, 2022/03/18
- [PATCH v8 11/46] hw/pxb: Use a type for realizing expanders, Jonathan Cameron, 2022/03/18
- [PATCH v8 12/46] hw/pci/cxl: Create a CXL bus type, Jonathan Cameron, 2022/03/18
- [PATCH v8 13/46] cxl: Machine level control on whether CXL support is enabled, Jonathan Cameron, 2022/03/18
- [PATCH v8 14/46] hw/pxb: Allow creation of a CXL PXB (host bridge), Jonathan Cameron, 2022/03/18
- [PATCH v8 15/46] qtest/cxl: Introduce initial test for pxb-cxl only.,
Jonathan Cameron <=
- [PATCH v8 16/46] hw/cxl/rp: Add a root port, Jonathan Cameron, 2022/03/18
- [PATCH v8 17/46] hw/cxl/device: Add a memory device (8.2.8.5), Jonathan Cameron, 2022/03/18
- [PATCH v8 18/46] hw/cxl/device: Implement MMIO HDM decoding (8.2.5.12), Jonathan Cameron, 2022/03/18
- [PATCH v8 19/46] hw/cxl/device: Add some trivial commands, Jonathan Cameron, 2022/03/18
- [PATCH v8 20/46] hw/cxl/device: Plumb real Label Storage Area (LSA) sizing, Jonathan Cameron, 2022/03/18
- [PATCH v8 21/46] hw/cxl/device: Implement get/set Label Storage Area (LSA), Jonathan Cameron, 2022/03/18