]> git.koha-community.org Git - koha.git/commit
Bug 18055: Speed up '00-strict.t' test, with Parallel::ForkManager
authorMason James <mtj@kohaaloha.com>
Sun, 5 Feb 2017 01:40:06 +0000 (14:40 +1300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 28 Mar 2018 18:53:05 +0000 (15:53 -0300)
commitac38492107c14acd2651cae07beeb81a56d4f132
tree61344d9d3f37c666ab374aa8c19b1ec28df02f2d
parent0a9031676eefbccad1afa6594df8990b8202b0fa
Bug 18055: Speed up '00-strict.t' test, with Parallel::ForkManager

to test...

1/ run 00-strict.t test, (16.5 mins on a 4xcpu system)

$ time prove t/db_dependent/00-strict.t
...
Files=1, Tests=654, 994 wallclock secs ( 0.19 usr  0.04 sys + 873.40 cusr 116.20 csys = 989.83 CPU)
Result: PASS
real    16m34.104s

2/ apply patch

3/ install Parallel::ForkManager package
$ sudo apt-get install libparallel-forkmanager-perl libsys-cpu-perl

4/ run 00-strict.t test again, (now 6 mins.. much faster)

$ time prove t/db_dependent/00-strict.t
...
Files=1, Tests=654, 364 wallclock secs ( 0.07 usr  0.01 sys + 1159.20 cusr 153.41 csys = 1312.69 CPU)
Result: PASS
real    6m4.355s

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: removed debian/control changes as the file is generated

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Installer/PerlDependencies.pm
t/db_dependent/00-strict.t [changed mode: 0644->0755]