Skip to content

Unit tests speed-up

Bastien Nocera linux-bluetooth 1 version Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3unit: Speed up unit-avdtp testunit/test-avdtp.c+1 -12 replies
2/3unit: Speed up unit-gobex-transfer testunit/test-gobex-transfer.c+1 -10 replies
3/3unit: Speed up unit-ringbuf testunit/test-ringbuf.c+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [BlueZ PATCH v1 0/3] Unit tests speed-up

With those small changes, as well as running tests concurrently using meson, I was able to make the whole test suite run in less than 4 seconds on my desktop system, with a baseline of 50 seconds for "make -j8 check" under the autotools.

make -j8 check: 50 seconds
meson before changes: 13 seconds
meson after changes: 3.6 seconds

Bastien Nocera (3):
unit: Speed up unit-avdtp test
unit: Speed up unit-gobex-transfer test
unit: Speed up unit-ringbuf test

 unit/test-avdtp.c          | 2 +-
 unit/test-gobex-transfer.c | 2 +-
 unit/test-ringbuf.c        | 3 ---
 3 files changed, 2 insertions(+), 5 deletions(-)
Signature · 1 line
2.52.0