From: Eryu Guan <eguan@redhat.com>
To: Jan Tulak <jtulak@redhat.com>
Cc: fstests@vger.kernel.org, david@fromorbit.com
Subject: Re: [PATCH 1/4] xfstests: Fix installation for extended names
Date: Fri, 15 Jul 2016 18:05:59 +0800 [thread overview]
Message-ID: <20160715100559.GJ2432@eguan.usersys.redhat.com> (raw)
In-Reply-To: <1468229169-24045-2-git-send-email-jtulak@redhat.com>
On Mon, Jul 11, 2016 at 11:26:06AM +0200, Jan Tulak wrote:
> xfstests supports extended test names like 314-foo-bar, but installation of
> these tests was skipped (not matching a regexp). So this patch fixes the
> makefiles in tests/*/
>
> The include/buildrules change was written by Dave Chinner.
>
> Signed-off-by: Jan Tulak <jtulak@redhat.com>
> ---
> UPDATE:
> Use Dave's code to at first select all files and then separate output and test
> files. BTW, in this version, when most of this version is written by Dave,
> should I add Signed-off-by, or is better to keep it mentioned only in the text?
> ---
> include/buildrules | 31 +++++++++++++++++++++++++++++++
> tests/btrfs/Makefile | 4 ++--
> tests/cifs/Makefile | 4 ++--
> tests/ext4/Makefile | 4 ++--
> tests/f2fs/Makefile | 4 ++--
> tests/generic/Makefile | 4 ++--
> tests/overlay/Makefile | 4 ++--
> tests/shared/Makefile | 4 ++--
> tests/udf/Makefile | 4 ++--
> tests/xfs/Makefile | 4 ++--
> 10 files changed, 49 insertions(+), 18 deletions(-)
>
> diff --git a/include/buildrules b/include/buildrules
> index c8a7c47..1269c8c 100644
> --- a/include/buildrules
> +++ b/include/buildrules
> @@ -100,3 +100,34 @@ MAKEDEP := $(MAKEDEPEND) $(CFLAGS)
> cp /dev/null .dep; \
> fi
>
> +# Gather files for installing into two lists:
> +# TESTS with executable scripts and OUTFILES with all the test outputs.
> +# Makefile has a very small matching, so we have to go this long way.
> +
> +# Start with all test related files:
> +ALLFILES = $(wildcard [0-9]??*)
> +
> +# Now build a list of known output files. Unfortunately, the
> +# multiple output test files are poorly handled as makefiles don't
> +# handle wildcarded multi-suffix matching. Hence we separate the
> +# processing of these right now.
> +EXTENDED_OUTFILES = $(wildcard [0-9]??*.out.*)
> +BASIC_OUTFILES = $(wildcard [0-9]??*.out)
This turns out to be not sufficient, [0-9]??.cfg files are missed, so
tests like ext4/001 and generic/088 fail due to "no qualified output",
because _link_out_file() failed to work correctly without these *.cfg
files.
Adding another wildcard to match cfg files works for me. e.g.
EXTENDED_OUTFILE_CFGS = $(wildcard [0-9]??.cfg)
then update OUTFILES accordingly
> +OUTFILES = $(EXTENDED_OUTFILES) $(BASIC_OUTFILES)
OUTFILES = $(EXTENDED_OUTFILES) $(EXTENDED_OUTFILE_CFGS) $(BASIC_OUTFILES)
Can you please send an updated version of this patch?
Thanks,
Eryu
next prev parent reply other threads:[~2016-07-15 10:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-11 9:26 [PATCH 0/4 v2] xfstests: extended names fixes Jan Tulak
2016-07-11 9:26 ` [PATCH 1/4] xfstests: Fix installation for extended names Jan Tulak
2016-07-15 10:05 ` Eryu Guan [this message]
2016-07-11 9:26 ` [PATCH 2/4] fstests: filename handling for extended names in ./check was on a wrong place Jan Tulak
2016-07-13 12:34 ` Eryu Guan
2016-07-14 9:11 ` Jan Tulak
2016-07-14 12:18 ` Eryu Guan
2016-07-14 12:47 ` Jan Tulak
2016-07-11 9:26 ` [PATCH 3/4] xfstests: remove unused variable Jan Tulak
2016-07-11 9:26 ` [PATCH 4/4] xfstests: filename handling - fix early wildcard expansion Jan Tulak
2016-07-13 12:28 ` Eryu Guan
2016-07-14 8:56 ` Jan Tulak
2016-07-14 12:13 ` Eryu Guan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160715100559.GJ2432@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=david@fromorbit.com \
--cc=fstests@vger.kernel.org \
--cc=jtulak@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox