[Dev] [dbscripts] [PATCH 0/2] Speed up the test suite even more

Luke Shumaker lukeshu at lukeshu.com
Fri Apr 6 03:20:54 GMT 2018


From: Luke Shumaker <lukeshu at parabola.nu>

Before applying these changes to 'master', I'd like to submit them
here for comments.  This patchset is also published as the
'lukeshu/faster-tests' branch in git.

The last patchset I submitted for review introduced a "package cache"
that is used during a test suite run, to avoid rebuilding packages
(libremakepkg) many times throughout the tests.  That cache lived in a
temporary directory created by `make test`.

This patchset speeds up the tests even further by allowing that
package cache to persist across test suite runs.  Because package
creation isn't the functionality under test, this should be safe to
do.

On beefcake.parabola.nu, this takes the test suite from ~13 minutes to
7-8 minutes, assuming that the cache is full and the PKGBUILD fixtures
haven't changed.

Luke Shumaker (2):
  test: common.bash: Be more careful about what we put in the package
    cache
  test/Makefile: Share the package cache between test suite runs

 test/Makefile        |  2 +-
 test/lib/common.bash | 26 +++++++++++---------------
 2 files changed, 12 insertions(+), 16 deletions(-)

-- 
Happy hacking,
~ Luke Shumaker



More information about the Dev mailing list