Skip to content

Commit

Permalink
t/client-server: basic client/server test script
Browse files Browse the repository at this point in the history
Currently there are only two sets of test cases:

- check that fio correctly handles the global options dictionary in the
  JSON output with one or more servers with job files with and without
  global sections.
- check that the [s,c]lat_percentiles options work for the "All clients"
  summary data.

Signed-off-by: Vincent Fu <[email protected]>
  • Loading branch information
vincentkfu committed Jan 23, 2025
1 parent 139b3be commit 7a9dba5
Show file tree
Hide file tree
Showing 8 changed files with 576 additions and 0 deletions.
505 changes: 505 additions & 0 deletions t/client_server.py

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions t/client_server/test01.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[global]
ioengine=null
time_based
runtime=3s
filesize=1T

[test1]
description=test1

[test2]
description=test2

[test3]
description=test3
20 changes: 20 additions & 0 deletions t/client_server/test04-noglobal.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[test1]
description=test1
ioengine=null
time_based
runtime=3s
filesize=1T

[test2]
description=test2
ioengine=null
time_based
runtime=3s
filesize=1T

[test3]
description=test3
ioengine=null
time_based
runtime=3s
filesize=1T
7 changes: 7 additions & 0 deletions t/client_server/test07-slat.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[test]
ioengine=null
iodepth=2
filesize=1T
time_based
runtime=3s
slat_percentiles=1
7 changes: 7 additions & 0 deletions t/client_server/test08-clat.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[test]
ioengine=null
iodepth=2
filesize=1T
time_based
runtime=3s
clat_percentiles=1
7 changes: 7 additions & 0 deletions t/client_server/test09-lat.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[test]
ioengine=null
iodepth=2
filesize=1T
time_based
runtime=3s
lat_percentiles=1
7 changes: 7 additions & 0 deletions t/client_server/test10-noclat.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[test]
ioengine=null
iodepth=2
filesize=1T
time_based
runtime=3s
clat_percentiles=0
9 changes: 9 additions & 0 deletions t/client_server/test11-alllat.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[test]
ioengine=null
iodepth=2
filesize=1T
time_based
runtime=3s
slat_percentiles=1
clat_percentiles=1
lat_percentiles=1

0 comments on commit 7a9dba5

Please sign in to comment.