RFC xfstests: Add support for config section
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest10 patches 14 repliesIn review
- v1 RFC10 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | xfstests: Run all tests when nothing is specifiedcheck group | +3 | 2 replies | |
| 2/10 | xfstests: Export all important variables in common/configcommon/ | +9 | 1 reply | |
| 3/10 | xfstests: Refactor code for obtaining test listcheck | +54 | 1 reply | |
| 4/10 | xfstests: Allow to recheck options in common/rccommon/ | +38 | 1 reply | |
| 5/10 | xfstests: Allow to re-read configurationcommon/ | +55 | 1 reply | |
| 6/10 | xfstests: Allow to specify RESULT_BASE directorycheck common/ | +5 | 1 reply | |
| 7/10 | xfstests: Prepare for config sectioncheck | +157 | 1 reply | |
| 8/10 | xfstests: Add support for sections in config fileREADME.config-sections check common/ | +158 | 1 reply | |
| 9/10 | xfstests: Allow to recreate TEST_DEVREADME.config-sections check common/ +1 more | +189 | 1 reply | |
| 10/10 | xfstests: Remount file system if MOUNT_OPTIONS changedREADME.config-sections check | +16 | 3 replies |
Reviews trailers per patch
7 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Chandra Seetharaman |
|---|---|
| 1/10 | R-b |
| 2/10 | R-b |
| 3/10 | R-b |
| 4/10 | R-b |
| 5/10 | R-b |
| 6/10 | R-b |
| 7/10 | |
| 8/10 | |
| 9/10 | |
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 00/10 v2] xfstests: Add support for config section
This patch set adds support for sections in the configuration file while maintaining unchanged behaviour when no sections are present in the configuration file, or no configuration file is provided.
V2: Recreate test list when FSTYP changed between sections
Explanation, syntax and example follows.
Configuration file with sections
================================
Configuration file with sections is useful for running xfstests on multiple file systems, or multiple file system setups in a single run without any help of external scripts.
Syntax
------
Syntax for defining a section is the following:
[section_name]
Section name should consist of alphanumeric characters and '_'. Anything else is forbidden and the section will not be recognised.
Each section in the configuration file should contain options in the format
OPTION=value
'OPTION' must not contain any white space characters. 'value' can contain any character you want with one simple limitation - characters ' and " can only appear at the start and end of the 'value', however it is not required.
Note that options are carried between sections so the same options does not have to be specified in each and every sections. However caution should be exercised not to leave unwanted options set from previous sections.
Results
-------
For every section xfstests will run with specified options and will produce separate results in the '$RESULT_BASE/$section_name' directory.
Different mount options
-----------------------
Specifying different mount options in difference config sections is allowed. When MOUNT_OPTIONS differs in the following section TEST_DEV will be remounted with new MOUNT_OPTIONS automatically before running the test.
Multiple file systems
---------------------
Having different file systems in different config sections is allowed. When FSTYP differs in the following section the FSTYP file system will be created automatically before running the test.
Note that if MOUNT_OPTIONS, MKFS_OPTIONS, or FSCK_OPTIONS are not directly specified in the section it will be reset to the default for a given file system.
You can also force the file system recreation by specifying RECREATE_TEST_DEV.
Example
-------
Here is an example of config file with sections:
[ext4_4k_block_size]
TEST_DEV=/dev/sda
TEST_DIR=/mnt/test
SCRATCH_DEV=/dev/sdb
SCRATCH_MNT=/mnt/test1
MKFS_OPTIONS="-q -F -b4096"
FSTYP=ext4
RESULT_BASE="pwd/results/date +%d%m%y_%H%M%S"
[ext4_1k_block_size]
MKFS_OPTIONS="-q -F -b1024"
[ext4_nojournal]
MKFS_OPTIONS="-q -F -b4096 -O ^has_journal"
[xfs_filesystem]
MKFS_OPTIONS="-f"
FSTYP=xfs
[ext3_filesystem]
FSTYP=ext3
MOUNT_OPTIONS="-o noatime"
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs