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

David Henningsson david.henningsson at canonical.com
Wed Aug 8 07:53:25 PDT 2012


On 08/08/2012 04:16 PM, rong deng wrote:
> 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.

Using pulseaudio without any of those projects is a perfectly valid use 
case, but that's not the main point.

Let me repeat my main point: Why should someone be required to also 
bring in the check package just for building it, if that person is not 
interested in running tests anyway? (Please answer without speculating 
about what other packages that user might be interested in.)

Bringing in a new mandatory dependency, that could be made optional, is 
very bad practice IMO.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic


More information about the pulseaudio-discuss mailing list