mtd-utils: make integck test independent
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest27 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/27 | fs-tests: integck: shrink dir_entry_info structure sizetests/ | +2 | 0 replies | |
| 2/27 | fs-tests: integck: shrink file_info structure sizetests/ | +3 | 0 replies | |
| 3/27 | fs-tests: integck: srink file_info structure even moretests/ | +2 | 0 replies | |
| 4/27 | fs-tests: integck: abuse random_offset field nicertests/ | +6 | 0 replies | |
| 5/27 | fs-tests: integck: shrink write_info even moretests/ | +18 | 0 replies | |
| 6/27 | fs-tests: integck: change tests defaultstests/ | +10 | 0 replies | |
| 7/27 | fs-tests: integck: implement own parameters parsingtests/ | +81 | 0 replies | |
| 8/27 | fs-tests: integck: clean-up copy_stringtests/ | +24 | 0 replies | |
| 9/27 | fs-tests: integck: get rid of tests_check_test_file_systemtests/ | +64 | 0 replies | |
| 10/27 | fs-tests: integck: make integck function return errortests/ | +9 | 0 replies | |
| 11/27 | fs-tests: integck: move mem_page_size to fsinfotests/ | +7 | 0 replies | |
| 12/27 | fs-tests: integck: move more variables to fsinfotests/ | +25 | 0 replies | |
| 13/27 | fs-tests: integck: add own get_free_space functiontests/ | +16 | 0 replies | |
| 14/27 | fs-tests: integck: move log10_initial_free to fsinfotests/ | +8 | 0 replies | |
| 15/27 | fs-tests: integck: remove trailing backslashes from mount pointtests/ | +14 | 0 replies | |
| 16/27 | fs-tests: integck: do not use tests_cat_pidtests/ | +3 | 0 replies | |
| 17/27 | fs-tests: integck: clean up test directory creationtests/ | +22 | 0 replies | |
| 18/27 | fs-tests: integck: do not use tests_clear_dirtests/ | +45 | 0 replies | |
| 19/27 | fs-tests: integck: do not use space after casttests/ | +18 | 0 replies | |
| 20/27 | fs-tests: integck: prefer to check for successtests/ | +24 | 0 replies | |
| 21/27 | fs-tests: integck: do not use tests_fs_is_rootfstests/ | +10 | 0 replies | |
| 22/27 | fs-tests: integck: do not use tests_remounttests/ | +165 | 0 replies | |
| 23/27 | fs-tests: integck: do not use tests_get_total_spacetests/ | +10 | 0 replies | |
| 24/27 | fs-tests: integck: do not use global common variablestests/ | +0 | 0 replies | |
| 25/27 | fs-tests: integck: do not use tests_random_notests/ | +65 | 0 replies | |
| 26/27 | fs-tests: integck: implement own version of CHECKtests/ tests/ | +16 | 0 replies | |
| 27/27 | fs-tests: integck: do not expect max name length to be 256tests/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/27] mtd-utils: make integck test independent
Hi, here is a patch-set which makes the integck test independent on the common code which tests in tests/fs-tests/ directory share. You may be wondering why the hack you need this :-) The explanation is rather long.
Q: Why you need to have integck independent?
A: Well, first of all I think integck is the only cool and useful test
in the whole fs-tests directory. To other ones are not really useful. And I do not want to touch them at all.
I plan to improve integck later, and this is preparation work. My improvements require nice error handling - not just dying in CHECK() macro. Do do this, I'll need to touch a lot of that common code. But since it is shared, I may brake some of the other tests if I touch it. Thus, I want to have integck independent on the other tests as the first step. And this patch-set is actually the preparation to the further planned work.
Q: So what are you going to do next?
A: Next I want to make all functions return error nicely (and free resources)
if a write or any other FS modification operation fails. Currently the integck test just exits.
Q: Why you need that?
A: To test UBIFS with the power-cut emulation feature on. UBIFS can emulate
power cuts, which means that integck may get an error at any time. In this case the test should be able to re-mount the tested file-system, check that fsync()'ed files are correct, and continue the testing. So nice error handling is just a preparation work.
And longer term this is needed for unstable bits testing. I have UBI patches which emulates power cuts and unstable bits, and UBIFS is supposed to handle them nicely. But it does not currently. And to fix UBI/UBIFS i need a good test which is able to recover when a power cut is emulated and which is able to check integrity of those files which were fsync()'ed before the emulated power cut. But this is long-term plan. Hopefully I'll be able to finish this, but any help will be appreciated.
So, for now just these small preparations.
Artem.