brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · f38836e Raw
93 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: MIT3 4set -ex5 6export IGT_FORCE_DRIVER=${DRIVER_NAME}7export PATH=$PATH:/igt/bin/8export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu/:/igt/lib/x86_64-linux-gnu:/igt/lib:/igt/lib649 10# Uncomment the below to debug problems with driver probing11: '12ls -l /dev/dri/13cat /sys/kernel/debug/devices_deferred14cat /sys/kernel/debug/device_component/*15'16 17# Dump drm state to confirm that kernel was able to find a connected display:18set +e19cat /sys/kernel/debug/dri/*/state20set -e21 22case "$DRIVER_NAME" in23    amdgpu|vkms)24        # Cannot use HWCI_KERNEL_MODULES as at that point we don't have the module in /lib25        mv /install/modules/lib/modules/* /lib/modules/. || true26        modprobe --first-time $DRIVER_NAME27        ;;28esac29 30if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then31    IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt"32fi33 34if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then35    IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt"36fi37 38if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" ]; then39    IGT_FAILS="--baseline /install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt"40fi41 42if [ "`uname -m`" = "aarch64" ]; then43    ARCH="arm64"44elif [ "`uname -m`" = "armv7l" ]; then45    ARCH="arm"46else47    ARCH="x86_64"48fi49 50curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${FDO_HTTP_CACHE_URI:-}$PIPELINE_ARTIFACTS_BASE/$ARCH/igt.tar.gz | tar --zstd -v -x -C /51 52TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt"53 54# If the job is parallel at the gitab job level, take the corresponding fraction55# of the caselist.56if [ -n "$CI_NODE_INDEX" ]; then57    sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" $TESTLIST58fi59 60# core_getversion checks if the driver is loaded and probed correctly61# so run it in all shards62if ! grep -q "core_getversion" $TESTLIST; then63    # Add the line to the file64    echo "core_getversion" >> $TESTLIST65fi66 67set +e68igt-runner \69    run \70    --igt-folder /igt/libexec/igt-gpu-tools \71    --caselist $TESTLIST \72    --output /results \73    -vvvv \74    $IGT_SKIPS \75    $IGT_FLAKES \76    $IGT_FAILS \77    --jobs 178ret=$?79set -e80 81deqp-runner junit \82   --testsuite IGT \83   --results /results/failures.csv \84   --output /results/junit.xml \85   --limit 50 \86   --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"87 88# Store the results also in the simpler format used by the runner in ChromeOS CI89#sed -r 's/(dmesg-warn|pass)/success/g' /results/results.txt > /results/results_simple.txt90 91cd $oldpath92exit $ret93