shithub: dav1d

Download patch

ref: aff854e1a6896f28e9dc8c4149362c345bedbba7
parent: 3e31a6ec73975f21b65ae08d56d9f2d6ed689e84
author: Matthias Dressel <[email protected]>
date: Thu Apr 9 22:31:33 EDT 2020

CI: Add multi-threading to conformance tests

--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,6 +52,7 @@
         - docker
         - amd64
 
+
 style-check:
     extends: .debian-amd64-common
     stage: style
@@ -80,6 +81,7 @@
               fi;
           done
 
+
 build-debian:
     extends: .debian-amd64-common
     tags:
@@ -331,6 +333,7 @@
         - ninja -C build
         - cd build && meson test -v
 
+
 .test-common:
     stage: test
     cache:
@@ -356,6 +359,18 @@
         - ninja -C build
         - cd build && time meson test -v --suite testdata-8 --suite testdata-10 --suite testdata-12 --test-args "--cpumask $ASM"
 
+.test-debian-mt:
+    extends:
+        - .debian-amd64-common
+        - .test-common
+    needs: ["build-debian"]
+    script:
+        - meson build --buildtype release
+                      -Dtestdata_tests=true
+                      -Dlogging=false
+        - ninja -C build
+        - cd build && time meson test -v --suite testdata-8 --suite testdata-10 --suite testdata-12 --wrapper ../tests/dav1d-test-data/wrap_mt.sh
+
 test-debian:
     extends:
         - .debian-amd64-common
@@ -397,6 +412,24 @@
     variables:
         ASM: 0
 
+test-debian-1tt-2ft:
+    extends: .test-debian-mt
+    variables:
+        TILETHREADS: 1
+        FRAMETHREADS: 2
+
+test-debian-2tt-1ft:
+    extends: .test-debian-mt
+    variables:
+        TILETHREADS: 2
+        FRAMETHREADS: 1
+
+test-debian-2tt-2ft:
+    extends: .test-debian-mt
+    variables:
+        TILETHREADS: 2
+        FRAMETHREADS: 2
+
 test-debian-unaligned-stack:
     extends:
         - .debian-amd64-common
@@ -522,6 +555,7 @@
                               -Dlogging=false
         - ninja -C build
         - cd build && time meson test -v
+
 
 .pages-common:
     extends: .debian-amd64-common