t/jobs/t0036,0037: add tests for verify_state_save/load options
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 14 Feb 2025 01:22:37 +0000 (10:22 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 14 Feb 2025 02:36:12 +0000 (11:36 +0900)
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 <shinichiro.kawasaki@wdc.com>
t/jobs/t0036-post.fio [new file with mode: 0644]
t/jobs/t0036-pre.fio [new file with mode: 0644]
t/jobs/t0037-post.fio [new file with mode: 0644]
t/jobs/t0037-pre.fio [new file with mode: 0644]
t/run-fio-tests.py

diff --git a/t/jobs/t0036-post.fio b/t/jobs/t0036-post.fio
new file mode 100644 (file)
index 0000000..13653c6
--- /dev/null
@@ -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 (file)
index 0000000..ae94c88
--- /dev/null
@@ -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 (file)
index 0000000..90ccc0c
--- /dev/null
@@ -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 (file)
index 0000000..4a5e30d
--- /dev/null
@@ -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
+
index 4ab670de72e5d71323d7604f66097fb2a412fe17..101e95f7dc7ccf98a14620c53cc85353279dc9f8 100755 (executable)
@@ -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,