What does "fixing tests failures" mean for users?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

What does "fixing tests failures" mean for users?

Post by Fazer »

I noticed there are lots of "fixing tests failures" commits in Wine git and they made me curious. How do a normal user benefit from them? What do those tests do? Why is it so important to make them work?
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Re: What does "fixing tests failures" mean for use

Post by jeffz »

Fazer wrote:I noticed there are lots of "fixing tests failures" commits in Wine git and they made me curious. How do a normal user benefit from them? What do those tests do? Why is it so important to make them work?
Tests prove the correctness of code. Generally, when working out a bug or implementation you write a test that passes on Windows and then work on Wine until the test passes there and cause no additional failures. Higher test coverage prevents regressions and serves as documentation.
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Re: What does "fixing tests failures" mean for use

Post by Daemon »

Fazer wrote:Tests prove the correctness of code. Generally, when working out a bug or implementation you write a test that passes on Windows and then work on Wine until the test passes there and cause no additional failures. Higher test coverage prevents regressions and serves as documentation.
How would you go about *NOT* building the /Tests directories & makefiles from source? It practically doubles the compile time for no added benefit for me.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: What does "fixing tests failures" mean for use

Post by vitamin »

Daemon wrote:How would you go about *NOT* building the /Tests directories & makefiles from source? It practically doubles the compile time for no added benefit for me.
You can't unless you modify Makefiles.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

What does "fixing tests failures" mean for users?

Post by austin987 »

On Wed, Nov 19, 2008 at 3:55 PM, Daemon <[email protected]> wrote:
Fazer wrote:
Tests prove the correctness of code. Generally, when working out a bug or implementation you write a test that passes on Windows and then work on Wine until the test passes there and cause no additional failures. Higher test coverage prevents regressions and serves as documentation.
How would you go about *NOT* building the /Tests directories & makefiles from source? It practically doubles the compile time for no added benefit for me.





See the RegressionTesting wiki page. I've put a patch up that disables
building the tests.

--
-Austin
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Re: What does "fixing tests failures" mean for use

Post by Daemon »

austin987 wrote:
See the RegressionTesting wiki page. I've put a patch up that disables
building the tests.

--
-Austin[/quote]

Sweet. Thanks for the info.
Locked