check: add support for an external test expunging file
PATCH 1/1 check: add support for an external test expunging file
Currently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for 0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows:
$ cat tests/generic/3.0-stable-avoid
280
$ sudo ./check -X 3.0-stable-avoid generic/280However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit allows the following:
$ cat /root/conf/data_journal.exclude
generic/068
ext4/301
$ sudo ./check -X /root/conf/data_journal.exclude -g autoIf the argument to the -X option is a pathname (that is, includes a '/' character), treat it as the latter case. If it the argument to the -X option is just a bare filename (that is, does not include '/' character), treat it as the former.
--- check | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-)
check +15 -5
@@ -215,12 +215,22 @@ while [ $# -gt 0 ]; do ;; -X) xfile=$2; shift ; - for d in $SRC_GROUPS $FSTYP; do - [ -f $SRC_DIR/$d/$xfile ] || continue - for f in `cat $SRC_DIR/$d/$xfile`; do - echo $d/$f >> $tmp.xlist + case "$xfile" in + */*) if [ -f "$xfile" ]; then + cat "$xfile" >> $tmp.xlist + else + echo "Exclusion file $xfile not found" + exit 1 + fi + ;; + *) for d in $SRC_GROUPS $FSTYP; do + [ -f $SRC_DIR/$d/$xfile ] || continue + for f in `cat $SRC_DIR/$d/$xfile`; do + echo $d/$f >> $tmp.xlist + done done - done + ;; + esac ;; -s) RUN_SECTION="$RUN_SECTION $2"; shift ;; -l) diff="diff" ;;
Signature · 6 lines
1.9.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 18 lines · Theodore Ts'o
Currently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for
0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows:$ cat tests/generic/3.0-stable-avoid 280 $ sudo ./check -X 3.0-stable-avoid generic/280However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit allows the following:
$ cat /root/conf/data_journal.exclude generic/068 ext4/301 $ sudo ./check -X /root/conf/data_journal.exclude -g auto
Quoted 4 lines
If the argument to the -X option is a pathname (that is, includes a '/' character), treat it as the latter case. If it the argument to the -X option is just a bare filename (that is, does not include '/' character), treat it as the former.
Can you add a new option rather than overloading the existing one with new meanings and semantics?
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 7 lines · Dave Chinner
Quoted 4 lines
If the argument to the -X option is a pathname (that is, includes a '/' character), treat it as the latter case. If it the argument to the -X option is just a bare filename (that is, does not include '/' character), treat it as the former.
Can you add a new option rather than overloading the existing one with new meanings and semantics?
If that's your preference, sure. How does --expunge-list-file strike you? Or would you prefer something else? I'm easy. :-)
- Ted
Quoted 11 lines · Theodore Ts'o
Quoted 7 lines · Dave Chinner
Quoted 4 lines
If the argument to the -X option is a pathname (that is, includes a '/' character), treat it as the latter case. If it the argument to the -X option is just a bare filename (that is, does not include '/' character), treat it as the former.
Can you add a new option rather than overloading the existing one with new meanings and semantics?
If that's your preference, sure. How does --expunge-list-file strike you? Or would you prefer something else? I'm easy. :-)
-E/--expunge-file is fine by me.
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
PATCH 1/1 check: add support for an external file containing tests to exclude
In reply to Dave ChinnerCurrently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for 0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows:
$ cat tests/generic/3.0-stable-avoid
280
$ sudo ./check -X 3.0-stable-avoid generic/280However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit enables the following:
$ cat /root/conf/data_journal.exclude
generic/068
ext4/301
$ sudo ./check -E /root/conf/data_journal.exclude -g auto--- check | 6 ++++++ 1 file changed, 6 insertions(+)
check +6 -0
@@ -81,6 +81,7 @@ testlist options -g group[,group...] include tests from these groups -x group[,group...] exclude tests from these groups -X file exclude individual tests + -E external_file exclude individual tests [testlist] include tests matching names in testlist ' exit 0
@@ -222,6 +223,11 @@ while [ $# -gt 0 ]; do done done ;; + -E) xfile=$2; shift ; + if [ -f $xfile ]; then + cat "$xfile" >> $tmp.xlist + fi + ;; -s) RUN_SECTION="$RUN_SECTION $2"; shift ;; -l) diff="diff" ;; -udiff) diff="$diff -u" ;;
Signature · 1 line
1.9.0
Re: [PATCH -v2] check: add support for an external file containing tests to exclude
Quoted 37 lines · Theodore Ts'o
Currently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for
0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows:$ cat tests/generic/3.0-stable-avoid 280 $ sudo ./check -X 3.0-stable-avoid generic/280However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit enables the following:
$ cat /root/conf/data_journal.exclude generic/068 ext4/301 $ sudo ./check -E /root/conf/data_journal.exclude -g autoSigned-off-by "Theodore Ts'o" <[email protected]>--- check | 6 ++++++ 1 file changed, 6 insertions(+)check +1
-0@@ -81,6 +81,7 @@ testlist options -g group[,group...] include tests from these groups -x group[,group...] exclude tests from these groups -X file exclude individual tests + -E external_file exclude individual tests [testlist] include tests matching names in testlist ' exit 0@@ -222,6 +223,11 @@ while [ $# -gt 0 ]; do done
check while [ $# -gt 0 ]; do · line 233
Quoted 10 lines
check +5
-0done ;; + -E) xfile=$2; shift ; + if [ -f $xfile ]; then + cat "$xfile" >> $tmp.xlist + fi + ;; -s) RUN_SECTION="$RUN_SECTION $2"; shift ;; -l) diff="diff" ;; -udiff) diff="$diff -u" ;;
Looks good.
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Re: [PATCH -v2] check: add support for an external file containing tests to exclude
Quoted 19 lines · Dave Chinner
Quoted 18 lines · Theodore Ts'o
Currently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for
0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows:$ cat tests/generic/3.0-stable-avoid 280 $ sudo ./check -X 3.0-stable-avoid generic/280However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit enables the following:
$ cat /root/conf/data_journal.exclude generic/068 ext4/301 $ sudo ./check -E /root/conf/data_journal.exclude -g auto
Quoted 5 lines
Quoted 1 line
Signed-off-by "Theodore Ts'o" <[email protected]>Looks good.
Reviewed-by Dave Chinner <[email protected]>
This patch has apparently not hit the xfstests repository. Would you like me to resend it?
Thanks,
- Ted
Re: [PATCH -v2] check: add support for an external file containing tests to exclude
Quoted 20 lines · Theodore Ts'o
Quoted 19 lines · Dave Chinner
Quoted 18 lines · Theodore Ts'o
Currently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for
0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows:$ cat tests/generic/3.0-stable-avoid 280 $ sudo ./check -X 3.0-stable-avoid generic/280However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit enables the following:
$ cat /root/conf/data_journal.exclude generic/068 ext4/301 $ sudo ./check -E /root/conf/data_journal.exclude -g auto
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by "Theodore Ts'o" <[email protected]>Looks good.
Reviewed-by Dave Chinner <[email protected]>This patch has apparently not hit the xfstests repository. Would you like me to resend it?
No, I just haven't done an xfstests update for the past couple of weeks because there haven't been a lot of patches and I've been busy with other stuff. I'll do one later in the week.
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]