test: add the test for regrow logs with asynchronous I/O replay
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 21 Mar 2024 03:10:11 +0000 (12:10 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Mar 2024 11:57:54 +0000 (05:57 -0600)
Add t/jobs/t0031-pre.fio and t/jobs/t0031.fio to test that the log
space is regrown for the asynchronous I/O replay jobs. This test case
confirms the fix by the previous commit titled "iolog: regrow logs in
iolog_delay()".

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

diff --git a/t/jobs/t0031-pre.fio b/t/jobs/t0031-pre.fio
new file mode 100644 (file)
index 0000000..ce4ee3b
--- /dev/null
@@ -0,0 +1,8 @@
+[job]
+rw=write
+ioengine=libaio
+size=1mb
+time_based=1
+runtime=1
+filename=t0030file
+write_iolog=iolog
diff --git a/t/jobs/t0031.fio b/t/jobs/t0031.fio
new file mode 100644 (file)
index 0000000..ae8f744
--- /dev/null
@@ -0,0 +1,7 @@
+[job]
+rw=read
+ioengine=libaio
+iodepth=128
+filename=t0030file
+read_iolog=iolog
+write_lat_log=lat_log
index acdbbf8879d4ce6263b2d4167a6e9719002e3348..1b884d871d53ded1c3e9a2f1143fc8f9e281e646 100755 (executable)
@@ -869,6 +869,15 @@ TEST_LIST = [
         'parameters':       ['--bandwidth-log'],
         'requirements':     [],
     },
+    {
+        'test_id':          31,
+        'test_class':       FioJobFileTest,
+        'job':              't0031.fio',
+        'success':          SUCCESS_DEFAULT,
+        'pre_job':          't0031-pre.fio',
+        'pre_success':      SUCCESS_DEFAULT,
+        'requirements':     [],
+    },
     {
         'test_id':          1000,
         'test_class':       FioExeTest,