Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248103 - app-emulation/wine-1.1.9: stop building tests
Summary: app-emulation/wine-1.1.9: stop building tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
: 260725 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-22 00:47 UTC by Rafał Mużyło
Modified: 2009-09-04 08:14 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch to add USE=buildtests (wine-1.1.20-buildtests.patch,699 bytes, patch)
2009-04-27 12:03 UTC, Andrew Church
Details | Diff
Compile tests on 'make check' (wine-1.1.27-compile-tests-on-make-check.diff,47.71 KB, patch)
2009-08-25 19:11 UTC, Michał Górny
Details | Diff
force-configure-to-disable-tests-gentoo-bug-248103.patch (force-configure-to-disable-tests-gentoo-bug-248103.patch,319 bytes, patch)
2009-08-27 10:43 UTC, Fab
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2008-11-22 00:47:55 UTC
As we don't use tests (by bug 72375) and they are not installed
and they are not really useful (AFAIK they're regression tests,
with results useful only to the wine devs), maybe we should
make use of the new configure option and --disable-tests ?
Comment 1 Chris Ribble 2008-12-01 22:09:58 UTC
(In reply to comment #0)
> As we don't use tests (by bug 72375) and they are not installed
> and they are not really useful (AFAIK they're regression tests,
> with results useful only to the wine devs), maybe we should
> make use of the new configure option and --disable-tests ?
> 

Do you have any metrics for how much faster it is to build Wine without the tests? It's a non-trivial amount of time to compile Wine on anything but brand-new hardware and there is a new version every 2 weeks, so it'd be nice to save some time every 2 weeks off the compile time.
Comment 2 Fab 2008-12-06 11:38:22 UTC
(In reply to comment #1)
> Do you have any metrics for how much faster it is to build Wine without the
> tests?

On :
 - Pentium-R-_4_CPU_2.40GHz
 - ccache version 2.4 [disabled]
 - MAKEOPTS="-j2"
 - CFLAGS="-O2 -march=pentium4 -pipe -ggdb"
 - FEATURES="buildpkg splitdebug"


Without --disable-tests :

    Sat Dec  6 11:45:31 2008 >>> app-emulation/wine-1.1.10
        merge time: 46 minutes and 41 seconds.


With --disable-tests :
    Sat Dec  6 12:24:37 2008 >>> app-emulation/wine-1.1.10
        merge time: 34 minutes and 14 seconds.


[ebuild   R   ] app-emulation/wine-1.1.10  USE="X alsa cups dbus gecko hal jpeg ncurses opengl oss xml -esd -gnutls -jack -lcms -ldap -nas -samba -scanner"
Comment 3 SpanKY gentoo-dev 2009-03-01 18:22:36 UTC
*** Bug 260725 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Church 2009-04-27 12:03:35 UTC
Created attachment 189608 [details, diff]
Ebuild patch to add USE=buildtests

I don't know whether it's worth having a USE flag to build the tests (maybe somebody will want to play around with them...) or whether "buildtests" is the best name, but here's a patch for wine-1.1.20 that disables building tests unless USE=buildtests is specified.

FWIW, here's another data point:

wine-1.1.20
  - Athlon64 X2 2.2GHz
  - MAKEOPTS=-j1
  - CFLAGS="-O2 -march=x86-64 -mtune=k8 -pipe"
USE=-buildtests: 22m31.989s
USE=buildtests: 30m32.470s
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2009-04-27 17:29:32 UTC
Why not using a more standard 'test' USE flag?
Comment 6 Andrew Church 2009-05-09 00:49:43 UTC
Re: USE=test, the USE flag documentation says it's a "workaround to pull in packages needed to run with FEATURES=test", so I don't know if that's appropriate here (besides which, the tests are only built, not run even for FEATURES=test).
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-08-25 11:18:45 UTC
I can't agree with the idea of using custom USEflag — basically because AFAICS these tests aren't installed along with wine. And building a thing that would be neither run nor installed, is just a waste of time.

So, the only scenario of building these tests supported by us is when these tests are going to be run. Instead of 'use test' we could use something like 'hasq test ${FEATURES}', I think.

And after all, if tests are restricted now anyway, we could anyway just add '--disable-tests' temporarily until better solution is chosen.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-08-25 11:43:42 UTC
Ok, I was wrong, we can't lookup ${FEATURES}. But 'use test' is acceptable and there are many ebuilds in the tree which do that.

I'll try to patch the build system to get these tests built on 'make check'.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-08-25 19:11:10 UTC
Created attachment 202270 [details, diff]
Compile tests on 'make check'

This patch first removes the whole '--disable-tests' code from configure and then modifies Maketest.rules.in to build tests when 'make check' is run. This would be the best solution.

Could anyone submit it upstream?
Comment 10 Fab 2009-08-27 10:43:15 UTC
Created attachment 202384 [details, diff]
force-configure-to-disable-tests-gentoo-bug-248103.patch

Another easy hack for gentoo users to disable tests.
Since bug #282735 has been closed, we can now :
 - mkdir -p /etc/portage/patches/app-emulation/wine
 - save the attached patch in this directory

On Core(TM)2 CPU E7400 @ 2.80GHz :
 - wine-1.1.28 merge time: 20 minutes and 11 seconds when building tests.
 - wine-1.1.28 merge time: 15 minutes and 23 seconds with this patch applied.
Comment 11 SpanKY gentoo-dev 2009-08-27 11:41:15 UTC
assuming the configure flag does what it says, Andrew's patch is (almost) fine

http://sources.gentoo.org/app-emulation/wine/wine-9999.ebuild?r1=1.40&r2=1.41
http://sources.gentoo.org/app-emulation/wine/wine-1.1.28.ebuild?r1=1.2&r2=1.3