testing: add test for slat + clat = tlat
authorVincent Fu <vincent.fu@samsung.com>
Fri, 5 Aug 2022 20:35:30 +0000 (13:35 -0700)
committerVincent Fu <vincentfu@gmail.com>
Sun, 7 Aug 2022 16:27:55 +0000 (12:27 -0400)
Add this test for the null ioengine which can run on more platforms.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/jobs/t0016-259ebc00.fio [new file with mode: 0644]
t/run-fio-tests.py

diff --git a/t/jobs/t0016-259ebc00.fio b/t/jobs/t0016-259ebc00.fio
new file mode 100644 (file)
index 0000000..1b418e7
--- /dev/null
@@ -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
index 7a2e1f41fd8642b8412dd5395c36bc7e32545a08..d77f20e00f8ae3a47fe0694116b54545e57962e0 100755 (executable)
@@ -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,