Re: [PATCH v2 2/2] treewide: run internal library tests in "make check"

Namjae Jeon <[email protected]>
Newsgroups dev.linux.lists.exfat
Message-ID <CAKYAXd_pVUC4AKWsQf7suy1wTeuk=R5p1DnyQ62+0TEkVrhBjA@mail.gmail.com>
On Fri, Aug 21, 2026 at 5:09 PM David Timber <[email protected]> wrote:
>
> On 8/21/26 16:02, Namjae Jeon wrote:
> >> diff --git a/configure.ac b/configure.ac
> >> index ab6fb5d..99bad24 100644
> >> --- a/configure.ac
> >> +++ b/configure.ac
> >> @@ -52,7 +52,7 @@ PKG_CHECK_MODULES([BLKID], [blkid >= 2.20], [AC_DEFINE([HAVE_BLKID], [1], [Defin
> >>         [PKG_CHECK_MODULES([EXT2_BLKID], [blkid], [AC_DEFINE([HAVE_EXT2_BLKID], [1], [Define if libblkid is from libext2])])])
> >>
> >>  AC_ARG_ENABLE([tests],
> >> -       AS_HELP_STRING([--enable-tests], [build internal test programs])
> >> +       AS_HELP_STRING([--enable-tests], [always build internal test programs (not just for "make check")]),
> >>         [enable_tests=yes]
> > I have updated it like this and will apply it to #exfat-next.
> >
> > -       AS_HELP_STRING([--enable-tests], [build internal test programs])
> > +       AS_HELP_STRING([--enable-tests], [always build internal test
> > programs (not just for "make check")]),
> > -       [enable_tests=yes]
> > +       [enable_tests=$enableval],
> > +       [enable_tests=no]
> >
> > Thanks!
> Just a quick question: is this a real problem where "enable_tests" is
> set to "yes" before running ./configure? I don't object to explicitly
> specifying [enable_tests=no] as a common pattern going forward. I'm just
> curious if there's any reasoning behind this.
[enable_tests=no] was not intended to fix an actual bug. I added it to
make the default explicit when no option is specified and to follow
the same pattern used by the iostats option below. The functionally
important change is  [enable_tests=$enableval].

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.