Skip to content

Commit

Permalink
t/jobs/t0035: add test for the file operations IO engine
Browse files Browse the repository at this point in the history
The previous commit fixed the NULL pointer dereference which happened
when the write_lat_log option is specified for the file operations IO
engine. Add a new test case to confirm the fix. This test case also
covers the basic use cases of the file operations IO engine.

Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
kawasaki authored and axboe committed Sep 6, 2024
1 parent a0e2faa commit a189fc7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
27 changes: 27 additions & 0 deletions t/jobs/t0035.fio
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[global]
size=4k
write_lat_log=log

[job1]
ioengine=filecreate
filename=t0035file1

[job2]
ioengine=filestat
filename=t0035file2

[job3]
ioengine=filedelete
filename=t0035file3

[job4]
ioengine=dircreate
filename=t0035dir1

[job5]
ioengine=dirstat
filename=t0035dir2

[job6]
ioengine=dirdelete
filename=t0035dir3
10 changes: 10 additions & 0 deletions t/run-fio-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,16 @@ def check_result(self):
'pre_success': SUCCESS_DEFAULT,
'requirements': [Requirements.linux, Requirements.libaio],
},
{
'test_id': 35,
'test_class': FioJobFileTest,
'job': 't0035.fio',
'success': SUCCESS_DEFAULT,
'pre_job': None,
'pre_success': None,
'pre_success': SUCCESS_DEFAULT,
'requirements': [],
},
{
'test_id': 1000,
'test_class': FioExeTest,
Expand Down

0 comments on commit a189fc7

Please sign in to comment.