[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tests, Emacs-25 and Conditional Features
From: |
Phillip Lord |
Subject: |
Re: Tests, Emacs-25 and Conditional Features |
Date: |
Thu, 17 Mar 2016 10:14:44 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Michael Albinus <address@hidden> writes:
> address@hidden (Phillip Lord) writes:
>
>> Second, should tests assume that all the conditional features (gnutls,
>> libxml) are available? If the answer is no, then how can we test that
>> conditional features are present when they should be; if the answer is
>> yes, then do we want tests that will fail some of the time.
>
> In your tests, you could check the presence of a feature, and skip if it
> isn't present. Like this:
>
> (skip-unless (gnutls-available-p))
> (skip-unless (functionp 'libxml-parse-xml-region))
Yeah, thought about that. But then the test is skipped if
gnutls-available-p returns nil. What happens if I believe that I have
configured and build Emacs to include gnutls, but, for some reason it
isn't. The test will be skipped when it should succeed.
The same is true for all the other conditional features.
I wonder if we need a "conditional feature" test selector.
Phil
- Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/16
- Re: Tests, Emacs-25 and Conditional Features, Michael Albinus, 2016/03/16
- Re: Tests, Emacs-25 and Conditional Features,
Phillip Lord <=
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/17
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Michael Albinus, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/19
- Re: Tests, Emacs-25 and Conditional Features, Stefan Monnier, 2016/03/18