Improving the speed of make test

Andrew Bartlett abartlet at
Mon Mar 5 17:04:40 MST 2012

On Mon, 2012-03-05 at 14:50 -0800, Matthieu Patou wrote:
> On 03/05/2012 12:23 AM, Volker Lendecke wrote:
> > On Mon, Mar 05, 2012 at 06:36:57PM +1100, Andrew Bartlett wrote:
> >> Jelmer and others interested in selftest:
> >>
> >> A while back, I started doing some profiling to determine where the time
> >> is spent in 'make test', using 'perf'.
> >>
> >> I was surprised to find that 15% of our time is spent in routines
> > Is that total time or CPU time? Quite some of the tests in
> > the file server area look at or depend on timeout behaviour.
> > The tests for share modes for example come to mind. With
> > some care (independent file names), they could probably very
> > well run in parallel and gain quite a bit of total time.
> I suggested here :
> that we run tests in environment in parallel (ie. samba3.* tests while 
> doing samba4.* dc  and samba4 fl2000, ...) on machines with more that 2 
> cores this could prove to be very valuable I'm sure.

One of the big challenges is that the tests no longer split up as easily
as samba3 and samba4.  A number of samba3 tests now run against Samba4
environments, and samba4 tests against samba3 environments.  some
environments also depend on each other. 

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list