From d47132c6a6be57bb5033c57db5e86cfba179c12f Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 27 Jun 2023 20:17:10 +0000 Subject: [PATCH] t/nvmept: add trim test with ioengine options enabled Add a test for a trim workload with ioengine options enabled like the ones we have for read and write. fixedbufs cannot be enabled for a trim-only workload because fio does not allocate data buffers for these workloads. Signed-off-by: Vincent Fu --- t/nvmept.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/t/nvmept.py b/t/nvmept.py index 200219b4..cc26d152 100755 --- a/t/nvmept.py +++ b/t/nvmept.py @@ -236,6 +236,23 @@ TEST_LIST = [ }, "test_class": PassThruTest, }, + { + # We can't enable fixedbufs because for trim-only + # workloads fio actually does not allocate any buffers + "test_id": 15, + "fio_opts": { + "rw": 'randtrim', + "timebased": 1, + "runtime": 3, + "fixedbufs": 0, + "nonvectored": 1, + "force_async": 1, + "registerfiles": 1, + "sqthread_poll": 1, + "output-format": "json", + }, + "test_class": PassThruTest, + }, ] def parse_args(): -- 2.25.1