t/nvmept: add trim test with ioengine options enabled
authorVincent Fu <vincent.fu@samsung.com>
Tue, 27 Jun 2023 20:17:10 +0000 (20:17 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 5 Jul 2023 19:51:09 +0000 (15:51 -0400)
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 <vincent.fu@samsung.com>
t/nvmept.py

index 200219b4aa480a258934492806461307440fbf91..cc26d1523e568c75b7391a8f6b4b34691da298ea 100755 (executable)
@@ -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():