Skip to content

RFC xfstests: move tests out of top level

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest18 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18xfstests: remove remake scriptremake+0 -721 reply
2/18xfstests: remove bench infrastructurebench common.bonnie common.config +19 more+2 -10160 replies
3/18xfstests: kill useless test owner fields001 002 003 +284 more+30 -6051 reply
4/18xfstests: remove stale machine configsconfigs/134.14.54.101.config configs/134.14.54.86.config configs/bongo.config +48 more+30 -4681 reply
5/18xfstests: fold common into checkcheck common+311 -3361 reply
6/18xfstests: clean up and simply check CLI option parsingcheck common.rc+169 -2641 reply
7/18xfstests: kill hangcheck stuff from checkcheck+0 -251 reply
8/18xfstests: remove test expunge file supportcheck+0 -181 reply
9/18xfstests: remove undocumented TESTS_REMAINING_LOGcheck+0 -71 reply
10/18xfstests: include test subdirectory supportcheck tests/generic/group+33 -150 replies
11/18xfstests: move generic tests out of top level dirgroup tests/generic/001 tests/generic/001.out +197 more+98 -980 replies
12/18xfstests: move xfs specific tests out of top directorycheck group tests/xfs/003 +361 more+2 -3000 replies
13/18xfstests: move remaining tests out of top level directorycheck group tests/btrfs/254 +39 more+44 -320 replies
14/18xfstests: rework CLI individual test specificationcheck+37 -490 replies
15/18xfstests: make exclude groups aware of multiple subdirectoriescheck+27 -80 replies
16/18xfstests: Introduce a results directorycheck common.attr common.defrag +6 more+140 -1260 replies
17/18xfstests: convert tests to use new results directorynew tests/btrfs/254 tests/btrfs/264 +282 more+905 -6205 replies
18/18xfstests: fix _link_out_file callerscommon.rc tests/generic/088 tests/xfs/018 +12 more+47 -330 replies

Reviews trailers per patch

7 of 18 patches have a Reviewed-by or Acked-by.

PatchDave ChinnerChristoph Hellwig
1/18R-b
2/18
3/18R-b
4/18R-b
5/18R-b
6/18R-b
7/18R-b
8/18
9/18R-b R-b
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC] [PATCH 0/18] xfstests: move tests out of top level

Alt-Subject: Games with Sed, Grep and Awk.

This series is based on top of the large filesystem test series.

This moves all the tests into a ./tests subdirectory, and sorts them into classes of related tests. Those are:

tests/generic: valid for all filesystems
tests/shared: valid for a limited number of filesystems
tests/xfs: xfs specific tests
tests/btrfs btrfs specific tests
tests/ext4 ext4 specific tests
tests/udf udf specific tests

Each directory has it's own group file to determine what groups the tests are associated with. Tests are run in exactly the same was as before, but when trying to run individual tests you need to specify the class as well. e.g. the old way:

# ./check 001

The new way:

# ./check generic/001

The output also indicates what class the test came from:

$ sudo ./check -g auto
FSTYP         -- xfs (debug)
PLATFORM      -- Linux/x86_64 test-1 3.5.0-rc5-dgc+
MKFS_OPTIONS  -- -f -bsize=4096 /dev/vdb
MOUNT_OPTIONS -- /dev/vdb /mnt/scratch
generic/001      3s
generic/002      0s
generic/005      1s
generic/006      10s
generic/007      2s
generic/010      [not run] dbtest was not built for this platform
generic/011      15s
generic/013      43s
generic/014      2s
generic/015      0s
generic/020      3s
generic/053      0s

....

[I'd post more example output, but a lightning strike took out power a little while ago and so all the output in my scrollback buffers went bye-bye...]

The test classes that are run are generic, shared and $FSTYP, hence avoiding most "notrun, wrong filesystem" cases.

Further, the test result/status files (e.g. 001.full) are also moved out of the top level directory into a new results directory. This defaults to ./results ($RESULT_BASE) and duplicates the heirarchy of the tests/ directory. It is created on demand. Each test is passed $RESULT_DIR which points to the directory it should dump it's output files in. i.e. "echo foo > $RESULT_DIR/$seq.full".

There's a bunch of cleanup at the start of the series, removing stuff that I don't think has been used for years. e.g. i didn't even know the remake script existed, but it's usefulness is minimal are we rarely, if ever, regenerate every single .out file in the test suite. Hence stuff is removed to make it easy to convert the important stuff to use the new structure....

Feel free to debate things like the renaming of variables - I just used sed scripts to do most of the conversion and most of them are in the commit messages so I can easily re-run them to do global search/replace if you've got better ideas for naming stuff ($seqres is pretty 'orrible)....

Overall, this series shows the direction I want to take xfstests in. The next steps are:

- remove remaining limitations on test naming (i.e. must be numbered) so that we can have descriptive names
- move all of the output into the results directory and enable it to be hosted externally so it can be archived and data mined easily
- move all the common* files to a subdirectory
- allow running of test classes, not just groups
- re-introduce the expunged file functionailty (which I didn't know existed) because I can see how useful that is for running regular QA with a current xfstests on an older distro (e.g. RHEL5) to avoid running tests that are known to fail or test features that aren't in old kernels...

I sent the patches in git format for all the renames - you don't need to see a patchset that is this size:

1280 files changed, 102397 insertions(+), 104307 deletions(-)

When turning on rename detection makes it this size:

686 files changed, 1722 insertions(+), 3632 deletions(-)

Which is much more manageable to review....

I'm certain there are problems still in there - I haven't done a lot of weird command line testing and really only just enough testing to make sure a typical auto group test run mostly passes.....

Comments, additional ideas, new functionality, modifications, etc are all welcome.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs