[pulseaudio-discuss] [PATCH v2 1/6] build-sys: add `check` test framework

rong deng dzrongg at gmail.com
Wed Aug 8 07:16:21 PDT 2012


2012/8/8, David Henningsson <david.henningsson at canonical.com>:
> On 08/08/2012 03:21 PM, rong deng wrote:
>> 2012/8/8, David Henningsson <david.henningsson at canonical.com>:
>>> On 07/17/2012 08:45 AM, Deng Zhengrong wrote:
>>>> +#### check test framework ####
>>>> +
>>>> +PKG_CHECK_MODULES(LIBCHECK, [ check ])
>>>> +AC_SUBST(LIBCHECK_CFLAGS)
>>>> +AC_SUBST(LIBCHECK_LIBS)
>>>> +
>>>
>>> Is it possible to make this build dependency optional? If so, please do,
>>> because
>>>    1) if you just want to compile PulseAudio and not the tests, you
>>> should be able to, and
>>>    2) I have to go through some administrative work if I have to bring
>>> in
>>> yet another build dependency to PulseAudio. :-/
>>
>> Hi David,
>>
>> Thanks for the review, I have a little different opinion:
>> 1. when we're in the process of development, we should always run the
>> tests all the time to track any possible regressions. It's not a good
>> idea to bypass the tests, because that's the value of all these tests,
>> otherwise we could just delete them all. :)
>> 2. it's sad to bring in yet another build dependency, but you know
>> life is not perfect... We've already added e.g. json lib before.
>> Besides, this check framework is already widely used in other
>> programs, e.g. gstreamer. and I've checked with several major linux
>> distribution that this can be easily installed. mostly install check
>> or check-devel or something similar. One command and it's all set. :)
>
> But what about a user of e g Linux From Scratch or other minimalist
> distros, who just wants to set up and build PulseAudio as quick as
> possible? Why should (s)he be required to also bring in the check
> package just for building it?

Other packages would already require the check package.
>From the webpage of check framework: http://check.sourceforge.net/
there's a section called "Projects Using Check", there are several
common projects using it. e.g. XCB and gstreamer. So if the user wants
to install X environment he/she would already install XCB and the
check dependency is there.
If the user wants to use pulseaudio, the chances are that he/she would
have to install gstreamer later and this package requires check
package as well. e.g. I quick searched to this URL
http://orion.lcg.ufrj.br/RPMS/SPECS/gstreamer.spec and in it, it
"BuildRequires: check-devel" So I think bringing check package a bit
earlier in the compilation of LFS helps. :)

oh, I got to this URL as well.
http://www.linuxfromscratch.org/blfs/view/svn/general/check.html which
teaches LFS users to compile check from scratch, so I believe LFS
users are already used to this check package.


>
> For Ubuntu I've noticed that the "check" package is in main, so it's not
> as terrible as it was with json-c, but still.

Sounds good.


More information about the pulseaudio-discuss mailing list