From: Vincent Fu Date: Fri, 5 Aug 2022 20:35:30 +0000 (-0700) Subject: testing: add test for slat + clat = tlat X-Git-Tag: test-tag-2022-08-09^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=de31fe9ab3dd6115cd0d5c77354f67f06595570d;p=fio.git testing: add test for slat + clat = tlat Add this test for the null ioengine which can run on more platforms. Signed-off-by: Vincent Fu --- diff --git a/t/jobs/t0016-259ebc00.fio b/t/jobs/t0016-259ebc00.fio new file mode 100644 index 00000000..1b418e7c --- /dev/null +++ b/t/jobs/t0016-259ebc00.fio @@ -0,0 +1,7 @@ +# Expected result: mean(slat) + mean(clat) = mean(lat) +# Buggy result: equality does not hold + +[test] +ioengine=null +size=1M +iodepth=16 diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index 7a2e1f41..d77f20e0 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -528,7 +528,7 @@ class FioJobTest_t0014(FioJobTest): class FioJobTest_t0015(FioJobTest): - """Test consists of fio test job t0015 + """Test consists of fio test jobs t0015 and t0016 Confirm that mean(slat) + mean(clat) = mean(tlat)""" def check_result(self): @@ -847,6 +847,16 @@ TEST_LIST = [ 'output_format': 'json', 'requirements': [Requirements.linux, Requirements.libaio], }, + { + 'test_id': 16, + 'test_class': FioJobTest_t0015, + 'job': 't0016-259ebc00.fio', + 'success': SUCCESS_DEFAULT, + 'pre_job': None, + 'pre_success': None, + 'output_format': 'json', + 'requirements': [], + }, { 'test_id': 1000, 'test_class': FioExeTest,