Skip to contentSkip to conversation

gstreamer1.0: run ptests in parallel

PATCH New Ross Burton 1 participant 1 message Nov 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gstreamer1.0: run ptests in parallel

Run the ptests in four parallel jobs (reduces runtime from ~80s to ~20s on my machine), and also pass any arguments in the scripts to make it easier to run individual tests.

---
 ...004-tests-add-helper-script-to-run-the-installed_tests.patch | 2 +-
 meta/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-add-helper-script-to-run-the-installed_tests.patch +1 -1
index 629b0563f6b..cd795fe0ec8 100644
@@ -59,7 +59,7 @@ index 0000000..cf7d31b
 +GST_PLUGIN_LOADING_WHITELIST="@GST_PLUGIN_LOADING_WHITELIST@"
 +GST_REGISTRY=@GST_REGISTRY@
 +GST_STATE_IGNORE_ELEMENTS="@GST_STATE_IGNORE_ELEMENTS@"
-+exec @TEST@
++exec @TEST@ "$@"
 diff --git a/tests/check/template.test.in b/tests/check/template.test.in
 index f701627..b74ef6a 100644
 --- a/tests/check/template.test.in
meta/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest +1 -1
index 7fee5a3d09c..44dc350eb3b 100755
@@ -23,4 +23,4 @@ GST_CHECKS_IGNORE="$GST_CHECKS_IGNORE,parser_pull_short_read"
 # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3524
 GST_CHECKS_IGNORE="$GST_CHECKS_IGNORE,parser_convert_duration,parser_pull_frame_growth,parser_reverse_playback"
 
-gnome-desktop-testing-runner gstreamer
+gnome-desktop-testing-runner --parallel=4 gstreamer "$@"
Signature · 1 line
2.34.1