From: Shin'ichiro Kawasaki Date: Fri, 14 Feb 2025 01:22:37 +0000 (+0900) Subject: t/jobs/t0036,0037: add tests for verify_state_save/load options X-Git-Tag: fio-3.39~3^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=42ba86c08690239255926ccc0972608628b817c8;p=fio.git t/jobs/t0036,0037: add tests for verify_state_save/load options Add tests to exercise the options verify_state_save and verify_state_load. The test case t0036 does it for psync I/O engine and single file, and t0037 does it for libaio I/O engine and multiple files. The test cases confirm no regression by the recent commits relevant to the options. Signed-off-by: Shin'ichiro Kawasaki --- diff --git a/t/jobs/t0036-post.fio b/t/jobs/t0036-post.fio new file mode 100644 index 00000000..13653c65 --- /dev/null +++ b/t/jobs/t0036-post.fio @@ -0,0 +1,8 @@ +[global] +filename=t0036file +verify=md5 +size=512k + +[job] +readwrite=read +verify_state_load=1 diff --git a/t/jobs/t0036-pre.fio b/t/jobs/t0036-pre.fio new file mode 100644 index 00000000..ae94c88f --- /dev/null +++ b/t/jobs/t0036-pre.fio @@ -0,0 +1,8 @@ +[global] +filename=t0036file +verify=md5 +size=512k + +[job] +readwrite=write +verify_state_save=1 diff --git a/t/jobs/t0037-post.fio b/t/jobs/t0037-post.fio new file mode 100644 index 00000000..90ccc0c8 --- /dev/null +++ b/t/jobs/t0037-post.fio @@ -0,0 +1,12 @@ +[global] +filename=t0037file.1:t0037file.2:t0037file.3:t0037file.4 +verify=md5 +ioengine=libaio +iodepth=32 +size=512k +loops=4 + +[job] +readwrite=read +verify_state_load=1 + diff --git a/t/jobs/t0037-pre.fio b/t/jobs/t0037-pre.fio new file mode 100644 index 00000000..4a5e30dc --- /dev/null +++ b/t/jobs/t0037-pre.fio @@ -0,0 +1,12 @@ +[global] +filename=t0037file.1:t0037file.2:t0037file.3:t0037file.4 +verify=md5 +ioengine=libaio +iodepth=32 +size=512k +loops=4 + +[job] +readwrite=write +verify_state_save=1 + diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index 4ab670de..101e95f7 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -951,6 +951,24 @@ TEST_LIST = [ 'pre_success': None, 'requirements': [], }, + { + 'test_id': 36, + 'test_class': FioJobFileTest, + 'job': 't0036-post.fio', + 'success': SUCCESS_DEFAULT, + 'pre_job': 't0036-pre.fio', + 'pre_success': SUCCESS_DEFAULT, + 'requirements': [], + }, + { + 'test_id': 37, + 'test_class': FioJobFileTest, + 'job': 't0037-post.fio', + 'success': SUCCESS_DEFAULT, + 'pre_job': 't0037-pre.fio', + 'pre_success': SUCCESS_DEFAULT, + 'requirements': [Requirements.linux, Requirements.libaio], + }, { 'test_id': 1000, 'test_class': FioExeTest,