gitlab-ci: Log the driver version that got tested.
authorEric Anholt <eric@anholt.net>
Mon, 26 Aug 2019 19:57:16 +0000 (12:57 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 12 Sep 2019 17:55:42 +0000 (10:55 -0700)
Sometimes you just want confirmation that dEQP really picked up the
driver we built you thought.  This is not as good as one might like,
because git isn't present in the cross-build image.

Acked-by: Rob Clark <robdclark@chromium.org>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
.gitlab-ci/deqp-runner.sh

index b2a9cd40ebbd48b92bde1c7d684315191065f4c8..bb9c7c80d5667c6d9b3f594ab427b7f438f0e4a4 100755 (executable)
@@ -102,6 +102,13 @@ if grep -q "dEQP-.*.info.renderer" /tmp/case-list.txt; then
     fi
 fi
 
+if grep -q "dEQP-.*.info.version" /tmp/case-list.txt; then
+    # This is an ugly dependency on the .qpa format: Print 3 lines after the
+    # match, which happens to contain the result.
+    VERSION=`sed -n '/#beginTestCaseResult dEQP-.*.info.version/{n;n;n;p}' $RESULTS/results.qpa | sed -n -E "s|<Text>(.*)</Text>|\1|p"`
+    echo "Driver version tested: $VERSION"
+fi
+
 if [ $DEQP_EXITCODE -ne 0 ]; then
    exit $DEQP_EXITCODE
 fi