From: Shin'ichiro Kawasaki Date: Thu, 21 Mar 2024 03:10:11 +0000 (+0900) Subject: test: add the test for regrow logs with asynchronous I/O replay X-Git-Tag: fio-3.37~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=140c58beeee44a10358a817c7699b66c5c7290f9;p=fio.git test: add the test for regrow logs with asynchronous I/O replay 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 Link: https://lore.kernel.org/r/20240321031011.4140040-3-shinichiro.kawasaki@wdc.com Signed-off-by: Jens Axboe --- diff --git a/t/jobs/t0031-pre.fio b/t/jobs/t0031-pre.fio new file mode 100644 index 00000000..ce4ee3b6 --- /dev/null +++ b/t/jobs/t0031-pre.fio @@ -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 index 00000000..ae8f7442 --- /dev/null +++ b/t/jobs/t0031.fio @@ -0,0 +1,7 @@ +[job] +rw=read +ioengine=libaio +iodepth=128 +filename=t0030file +read_iolog=iolog +write_lat_log=lat_log diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index acdbbf88..1b884d87 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -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,