From: "qi.fuli@fujitsu.com" <qi.fuli@fujitsu.com>
To: 'Santosh Sivaraj' <santosh@fossix.org>,
"linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org>
Cc: "qi.fuli@fujitsu.com" <qi.fuli@fujitsu.com>
Subject: RE: [ndctl PATCH] ndctl/test: add checking the presence of jq command ahead
Date: Fri, 26 Feb 2021 10:11:18 +0000 [thread overview]
Message-ID: <OSBPR01MB3653B3E78E16D2AE9957D45BF79D9@OSBPR01MB3653.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <87ft1keb17.fsf@santosiv.in.ibm.com>
>
> Hi QI,
>
> QI Fuli <qi.fuli@fujitsu.com> writes:
>
> > Due to the lack of jq command, the result of the test will be 'fail'.
> > This patch adds checking the presence of jq commmand ahead.
> > If there is no jq command in the system, the test will be marked as 'skip'.
> >
> > Signed-off-by: QI Fuli <qi.fuli@fujitsu.com>
> > Link: https://github.com/pmem/ndctl/issues/141
>
> Could this dependency be made part of configure.ac? Something like
>
> diff --git a/configure.ac b/configure.ac index 5ec8d2f..0f2c6c1 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -65,6 +65,13 @@ fi
> AC_SUBST([XMLTO])
> fi
>
> +AC_CHECK_PROG(JQ, [jq], [$(which jq)], [missing]) if test "x$JQ" =
> +xmissing; then
> + AC_MSG_ERROR([jq needed to validate tests]) fi
> +AC_SUBST([JQ])
> +
> +
> AC_C_TYPEOF
> AC_DEFINE([HAVE_STATEMENT_EXPR], 1, [Define to 1 if you have statement
> expressions.])
>
> Thanks,
> Santosh
Hi Santosh,
Thank you very much for the comments.
Yes, making this dependency part of configure.ac sounds good.
Meanwhile I think the tests should be improved, because the test result should not be "fail" if there is no jq command in the system.
I will make a V2 patch.
Best,
QI
_______________________________________________
Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org
To unsubscribe send an email to linux-nvdimm-leave@lists.01.org
prev parent reply other threads:[~2021-02-26 10:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 13:21 [ndctl PATCH] ndctl/test: add checking the presence of jq command ahead QI Fuli
2021-02-22 6:59 ` qi.fuli
2021-02-25 9:45 ` Santosh Sivaraj
2021-02-26 10:11 ` qi.fuli [this message]
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=OSBPR01MB3653B3E78E16D2AE9957D45BF79D9@OSBPR01MB3653.jpnprd01.prod.outlook.com \
--to=qi.fuli@fujitsu.com \
--cc=linux-nvdimm@lists.01.org \
--cc=santosh@fossix.org \
/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;
as well as URLs for NNTP newsgroup(s).