gitlab-ci: allow to run dEQP Vulkan with DEQP_VER
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Nov 2019 07:39:00 +0000 (08:39 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 6 Dec 2019 09:57:55 +0000 (10:57 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
.gitlab-ci.yml
.gitlab-ci/deqp-runner.sh

index 581fb8c2ed2d663802da40d81fbb400a0bcbec2b..2249272787216e25220e69dbe3b5968ec3b6703f 100644 (file)
@@ -545,13 +545,24 @@ piglit-quick_shader:
       -x spec@glsl-1.50@execution@built-in-functions
     PIGLIT_PROFILES: quick_shader
 
-.deqp-test-gl:
-  extends: .test-gl
+.deqp-test:
   variables:
     DEQP_SKIPS: deqp-default-skips.txt
   script:
     - ./artifacts/deqp-runner.sh
 
+.deqp-test-gl:
+  extends:
+    - .test-gl
+    - .deqp-test
+
+.deqp-test-vk:
+  extends:
+    - .test-vk
+    - .deqp-test
+  variables:
+    DEQP_VER: vk
+
 test-llvmpipe-gles2:
   variables:
     DEQP_VER: gles2
index b8b63b88161ecfb202ef26dc35d3c82f74d01ca2..c9231c7c54bf4697bc2f8b23f73cdf8fea704adb 100755 (executable)
@@ -15,7 +15,7 @@ DEQP_OPTIONS+=(--deqp-visibility=hidden)
 #DEQP_OPTIONS+=(--deqp-watchdog=enable)
 
 if [ -z "$DEQP_VER" ]; then
-   echo 'DEQP_VER must be set to something like "gles2" or "gles31" for the test run'
+   echo 'DEQP_VER must be set to something like "gles2", "gles31" or "vk" for the test run'
    exit 1
 fi
 
@@ -37,8 +37,14 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
 RESULTS=`pwd`/results
 mkdir -p $RESULTS
 
-# Generate test case list file
-cp /deqp/mustpass/$DEQP_VER-master.txt /tmp/case-list.txt
+# Generate test case list file.
+if [ "$DEQP_VER" == "vk" ]; then
+   cp /deqp/mustpass/vk-master.txt /tmp/case-list.txt
+   DEQP=/deqp/external/vulkancts/modules/vulkan/deqp-vk
+else
+   cp /deqp/mustpass/$DEQP_VER-master.txt /tmp/case-list.txt
+   DEQP=/deqp/modules/$DEQP_VER/deqp-$DEQP_VER
+fi
 
 # If the job is parallel, take the corresponding fraction of the caselist.
 # Note: N~M is a gnu sed extension to match every nth line (first line is #1).
@@ -58,10 +64,11 @@ fi
 set +e
 
 run_cts() {
-    caselist=$1
-    output=$2
+    deqp=$1
+    caselist=$2
+    output=$3
     deqp-runner \
-        --deqp /deqp/modules/$DEQP_VER/deqp-$DEQP_VER \
+        --deqp $deqp \
         --output $output \
         --caselist $caselist \
         --exclude-list $ARTIFACTS/$DEQP_SKIPS \
@@ -168,7 +175,7 @@ quiet() {
     set -x
 }
 
-run_cts /tmp/case-list.txt $RESULTS/cts-runner-results.txt
+run_cts $DEQP /tmp/case-list.txt $RESULTS/cts-runner-results.txt
 DEQP_EXITCODE=$?
 
 quiet generate_junit $RESULTS/cts-runner-results.txt > $RESULTS/results.xml