diff options
author | Vincent Fu <vincent.fu@samsung.com> | 2024-03-20 14:08:46 -0400 |
---|---|---|
committer | Vincent Fu <vincent.fu@samsung.com> | 2024-03-20 14:42:39 -0400 |
commit | f226220049035290e5e193d1fc117d3057fc1270 (patch) | |
tree | 18efc243e1844fa860e1a2d8fad722c399f99ac4 | |
parent | 2e976800fe74a58fadbbd9b069c01120b48cf9f0 (diff) | |
download | fio-f226220049035290e5e193d1fc117d3057fc1270.tar.gz |
t/jobs/t0030: add test for --bandwidth-log option
Add a test to detect changes that break the --bandwidth-log option. This
option uses the logging data structures in a way that differs from how
the other logs use them. So it's easy to forget about this special case.
Recent patches resolving related breakage are:
d72244761b2230fbb2d6eaec59cdedd3ea651d4f ("stat: fix segfault with fio
option --bandwidth-log")
acc481b6d34aab3ee6e19f22b64f8bf0dd30480c ("iolog: fix reported defect
from coverity scan")
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
-rw-r--r-- | t/jobs/t0030.fio | 10 | ||||
-rwxr-xr-x | t/run-fio-tests.py | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/t/jobs/t0030.fio b/t/jobs/t0030.fio new file mode 100644 index 000000000..8bbc810e7 --- /dev/null +++ b/t/jobs/t0030.fio @@ -0,0 +1,10 @@ +# run with --bandwidth-log +# broken behavior: seg fault +# successful behavior: test runs to completion with 0 as the exit code + +[test] +ioengine=null +filesize=1T +rw=read +time_based +runtime=2s diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index 08134e50e..acdbbf887 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -860,6 +860,16 @@ TEST_LIST = [ 'requirements': [], }, { + 'test_id': 30, + 'test_class': FioJobFileTest, + 'job': 't0030.fio', + 'success': SUCCESS_DEFAULT, + 'pre_job': None, + 'pre_success': None, + 'parameters': ['--bandwidth-log'], + 'requirements': [], + }, + { 'test_id': 1000, 'test_class': FioExeTest, 'exe': 't/axmap', |