Bug 218924 - UBIFS: fsck: Testing summary
Summary: UBIFS: fsck: Testing summary
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-01 11:06 UTC by Zhihao Cheng
Modified: 2024-06-06 01:31 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
0001-ubifs-Add-corruption-injection-support.patch (34.30 KB, application/mbox)
2024-06-01 11:06 UTC, Zhihao Cheng
Details
generate.sh (887 bytes, application/x-shellscript)
2024-06-01 11:07 UTC, Zhihao Cheng
Details
inject_corruption.sh (666 bytes, application/x-shellscript)
2024-06-01 11:07 UTC, Zhihao Cheng
Details
test_bad_image.sh (824 bytes, application/x-shellscript)
2024-06-01 11:07 UTC, Zhihao Cheng
Details
code coverage all (34.54 KB, application/vnd.rar)
2024-06-06 01:28 UTC, Zhihao Cheng
Details
code coverage common (92.47 KB, application/vnd.rar)
2024-06-06 01:29 UTC, Zhihao Cheng
Details
code coverage fsck (68.61 KB, application/vnd.rar)
2024-06-06 01:29 UTC, Zhihao Cheng
Details

Description Zhihao Cheng 2024-06-01 11:06:50 UTC
Created attachment 306394 [details]
0001-ubifs-Add-corruption-injection-support.patch

All testcases are integrated into mtd-utils, the details can refer to mtd-utils/tests/ubifs_tools-tests/README.txt.

There is one testcase named "fsck_bad_image.sh", the generating method of inconsistent UBIFS image depends on 0001-ubifs-Add-corruption-injection-support.patch. All bad images are generated from the same good image.
generate.sh: generate good image
inject_corruption.sh: inject corruption into the good image
test_bad_image.sh: check the bad image
Comment 1 Zhihao Cheng 2024-06-01 11:07:23 UTC
Created attachment 306395 [details]
generate.sh
Comment 2 Zhihao Cheng 2024-06-01 11:07:42 UTC
Created attachment 306396 [details]
inject_corruption.sh
Comment 3 Zhihao Cheng 2024-06-01 11:07:56 UTC
Created attachment 306397 [details]
test_bad_image.sh
Comment 4 Zhihao Cheng 2024-06-06 01:28:47 UTC
Created attachment 306421 [details]
code coverage all
Comment 5 Zhihao Cheng 2024-06-06 01:29:10 UTC
Created attachment 306422 [details]
code coverage common
Comment 6 Zhihao Cheng 2024-06-06 01:29:29 UTC
Created attachment 306423 [details]
code coverage fsck
Comment 7 Zhihao Cheng 2024-06-06 01:31:41 UTC
Code coverage:
 fsck - Line 87.4%, functions 98.0%
 libubifs - Line 78.4%, functions 89.1%
 mkfs - Line 71.6%, functions 97.8%

Note You need to log in before you can comment on or make changes to this bug.