]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfstests: rework CLI individual test specification
authorDave Chinner <dchinner@redhat.com>
Fri, 15 Mar 2013 12:27:59 +0000 (12:27 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 27 Mar 2013 01:50:42 +0000 (20:50 -0500)
commitcbcc88fbd0de979473217689d0204a350972d8b4
treef2df11851e5ac221d7e4c435ed6bfb0fc581d8ba
parent8ff10d6d1c5ff473541d6d698ee4fb9cb9f29dab
xfstests: rework CLI individual test specification

Now that tests are in separate subdirectories, they cannot be selected purely by
test number on the command line. We need to specify the test by subdir and test
name, so effectively we move to specifying them by regexes on the command line
rather than by expanding a range internally. This is needed to support
non-numeric test names as well, so the change may as well be made here.

This means the command line parsing needs to change from trying to detect tests
by a regex match to a processing loop that simply parses the tests and checks
for there existence. Hence the moment we find an argument that is not a switch
(i.e no preceeding "-"), we move from the arg processing loop to the test name
processing loop. IOWs, tests must be specified last on the command line.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Phil White <pwhite@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
check