From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 16/17] test: add lib specific Kconfig
Date: Mon, 28 Oct 2019 09:26:27 +0900 [thread overview]
Message-ID: <20191028002626.GL10448@linaro.org> (raw)
In-Reply-To: <20191025160730.GD11173@bill-the-cat>
Tom,
On Fri, Oct 25, 2019 at 12:07:30PM -0400, Tom Rini wrote:
> On Fri, Oct 25, 2019 at 07:07:48PM +0900, AKASHI Takahiro wrote:
> > Adding new unit tests for library routines will make test/Kconfig
> > messy. So just create a Kconfig file under lib.
> >
> > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> > ---
> > test/Kconfig | 8 +-------
> > test/lib/Kconfig | 7 +++++++
> > 2 files changed, 8 insertions(+), 7 deletions(-)
> > create mode 100644 test/lib/Kconfig
> >
> > diff --git a/test/Kconfig b/test/Kconfig
> > index 48a0e501f88f..3a5aabedd0ef 100644
> > --- a/test/Kconfig
> > +++ b/test/Kconfig
> > @@ -6,13 +6,7 @@ menuconfig UNIT_TEST
> > This does not require sandbox to be included, but it is most
> > often used there.
> >
> > -config UT_LIB
> > - bool "Unit tests for library functions"
> > - depends on UNIT_TEST
> > - default y
> > - help
> > - Enables the 'ut lib' command which tests library functions like
> > - memcat(), memcyp(), memmove().
> > +source "test/lib/Kconfig"
> >
> > config UT_TIME
> > bool "Unit tests for time functions"
> > diff --git a/test/lib/Kconfig b/test/lib/Kconfig
> > new file mode 100644
> > index 000000000000..a983bdcaa3f1
> > --- /dev/null
> > +++ b/test/lib/Kconfig
> > @@ -0,0 +1,7 @@
> > +config UT_LIB
> > + bool "Unit tests for library functions"
> > + depends on UNIT_TEST
> > + default y
> > + help
> > + Enables the 'ut lib' command which tests library functions like
> > + memcat(), memcyp(), memmove().
>
> But we then only add one more entry in the next patch. How many library
> tests do you see adding when everything is done?
Only this one.
> If it's less than 5,
> we should just keep things in the test/Kconfig file I think. The rest
> of the series seems fine, thanks!
As you know, there are bunch of library functions which are NOT
tested by "ut". I would expect that more and more tests should come
as someone modify any of libraries functions.
But I don't have a strong opinion here and will follow your suggestion.
-Takahiro Akashi
> --
> Tom
next prev parent reply other threads:[~2019-10-28 0:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-25 10:07 [U-Boot] [PATCH v2 00/17] import x509/pkcs7 parsers from linux AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 01/17] linux_compat: move kmemdup() from ubifs.c to linux_compat.c AKASHI Takahiro
2019-10-25 17:38 ` Heinrich Schuchardt
2019-10-28 0:28 ` AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 02/17] rtc.h: add struct udevice declaration AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 03/17] rtc: move date.c from drivers/rtc/ to lib/ AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 04/17] lib: add mktime64() for linux compatibility AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 05/17] include: kernel.h: include printk.h AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 06/17] linux/time.h: include vsprintf.h AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 07/17] cmd: add asn1_compiler AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 08/17] Makefile: add build script for asn1 parsers AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 09/17] lib: add asn1 decoder AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 10/17] doc: add README for asn1 compiler and decoder AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 11/17] lib: add oid registry utility AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 12/17] lib: crypto: add public key utility AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 13/17] lib: crypto: add rsa public key parser AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 14/17] lib: crypto: add x509 parser AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 15/17] lib: crypto: add pkcs7 message parser AKASHI Takahiro
2019-10-25 10:07 ` [U-Boot] [PATCH v2 16/17] test: add lib specific Kconfig AKASHI Takahiro
2019-10-25 16:07 ` Tom Rini
2019-10-28 0:26 ` AKASHI Takahiro [this message]
2019-10-25 10:07 ` [U-Boot] [PATCH v2 17/17] test: add asn1 unit test AKASHI Takahiro
2019-10-28 1:44 ` [U-Boot] [PATCH v2 00/17] import x509/pkcs7 parsers from linux AKASHI Takahiro
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=20191028002626.GL10448@linaro.org \
--to=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
/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