t/jobs/t0035: add test for the file operations IO engine
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 6 Sep 2024 02:37:17 +0000 (11:37 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2024 13:41:43 +0000 (07:41 -0600)
The previous commit fixed the NULL pointer dereference which happened
when the write_lat_log option is specified for the file operations IO
engine. Add a new test case to confirm the fix. This test case also
covers the basic use cases of the file operations IO engine.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20240906023717.1464031-3-shinichiro.kawasaki@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/jobs/t0035.fio [new file with mode: 0644]
t/run-fio-tests.py

diff --git a/t/jobs/t0035.fio b/t/jobs/t0035.fio
new file mode 100644 (file)
index 0000000..fd3488f
--- /dev/null
@@ -0,0 +1,27 @@
+[global]
+size=4k
+write_lat_log=log
+
+[job1]
+ioengine=filecreate
+filename=t0035file1
+
+[job2]
+ioengine=filestat
+filename=t0035file2
+
+[job3]
+ioengine=filedelete
+filename=t0035file3
+
+[job4]
+ioengine=dircreate
+filename=t0035dir1
+
+[job5]
+ioengine=dirstat
+filename=t0035dir2
+
+[job6]
+ioengine=dirdelete
+filename=t0035dir3
index 47482144b13a448363241db1044b2db2b98a5d6e..d713c1c424f09475047073f27a0ae3633d22679c 100755 (executable)
@@ -944,6 +944,16 @@ TEST_LIST = [
         'pre_success':      SUCCESS_DEFAULT,
         'requirements':     [Requirements.linux, Requirements.libaio],
     },
+    {
+        'test_id':          35,
+        'test_class':       FioJobFileTest,
+        'job':              't0035.fio',
+        'success':          SUCCESS_DEFAULT,
+        'pre_job':          None,
+        'pre_success':      None,
+        'pre_success':      SUCCESS_DEFAULT,
+        'requirements':     [],
+    },
     {
         'test_id':          1000,
         'test_class':       FioExeTest,