From: Shin'ichiro Kawasaki Date: Thu, 20 Oct 2022 06:38:53 +0000 (+0900) Subject: test: add test for verify read back of experimental verify X-Git-Tag: fio-3.33~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d661fb18c39bc361399a0f9c254ac89f9c6e45fd;p=fio.git test: add test for verify read back of experimental verify Add a test case to confirm fix of bytes_done accounting issue of experimental verify. The test job runs a simple workload with experimental verify and confirm verify read amount is the file size. Signed-off-by: Shin'ichiro Kawasaki Signed-off-by: Vincent Fu --- diff --git a/t/jobs/t0025.fio b/t/jobs/t0025.fio new file mode 100644 index 00000000..29b5fe80 --- /dev/null +++ b/t/jobs/t0025.fio @@ -0,0 +1,7 @@ +[job] +filename=t0025file +size=128k +readwrite=write +do_verify=1 +verify=md5 +experimental_verify=1 diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index df87ae72..439991a1 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -788,6 +788,18 @@ class FioJobTest_t0024(FioJobTest_t0023): self.check_all_offsets("bssplit_bw.log", 512, filesize) +class FioJobTest_t0025(FioJobTest): + """Test experimental verify read backs written data pattern.""" + def check_result(self): + super(FioJobTest_t0025, self).check_result() + + if not self.passed: + return + + if self.json_data['jobs'][0]['read']['io_kbytes'] != 128: + self.passed = False + + class FioJobTest_iops_rate(FioJobTest): """Test consists of fio test job t0009 Confirm that job0 iops == 1000 @@ -1183,6 +1195,16 @@ TEST_LIST = [ 'pre_success': None, 'requirements': [], }, + { + 'test_id': 25, + 'test_class': FioJobTest_t0025, + 'job': 't0025.fio', + 'success': SUCCESS_DEFAULT, + 'pre_job': None, + 'pre_success': None, + 'output_format': 'json', + 'requirements': [], + }, { 'test_id': 1000, 'test_class': FioExeTest,