2 # SPDX-License-Identifier: MIT
6 export IGT_FORCE_DRIVER=${DRIVER_NAME}
7 export PATH=$PATH:/igt/bin/
8 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu/:/igt/lib/x86_64-linux-gnu:/igt/lib:/igt/lib64
10 # Uncomment the below to debug problems with driver probing
13 cat /sys/kernel/debug/devices_deferred
14 cat /sys/kernel/debug/device_component/*
17 # Dump drm state to confirm that kernel was able to find a connected display:
19 cat /sys/kernel/debug/dri/*/state
22 case "$DRIVER_NAME" in
24 # Cannot use HWCI_KERNEL_MODULES as at that point we don't have the module in /lib
25 mv /install/modules/lib/modules/* /lib/modules/. || true
26 modprobe --first-time $DRIVER_NAME
30 if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then
31 IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt"
34 if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then
35 IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt"
38 if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" ]; then
39 IGT_FAILS="--baseline /install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt"
42 if [ "`uname -m`" = "aarch64" ]; then
44 elif [ "`uname -m`" = "armv7l" ]; then
50 curl -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 /
52 TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt"
54 # If the job is parallel at the gitab job level, take the corresponding fraction
56 if [ -n "$CI_NODE_INDEX" ]; then
57 sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" $TESTLIST
60 # core_getversion checks if the driver is loaded and probed correctly
61 # so run it in all shards
62 if ! grep -q "core_getversion" $TESTLIST; then
63 # Add the line to the file
64 echo "core_getversion" >> $TESTLIST
70 --igt-folder /igt/libexec/igt-gpu-tools \
71 --caselist $TESTLIST \
83 --results /results/failures.csv \
84 --output /results/junit.xml \
86 --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
88 # Store the results also in the simpler format used by the runner in ChromeOS CI
89 #sed -r 's/(dmesg-warn|pass)/success/g' /results/results.txt > /results/results_simple.txt