6
VERSION=`cat install/VERSION`
11
export OCL_ICD_VENDORS=$OLDPWD/install/etc/OpenCL/vendors/
15
export LD_LIBRARY_PATH=$OLDPWD/install/lib
18
# If the job is parallel at the gitlab job level, will take the corresponding
19
# fraction of the caselist.
20
if [ -n "$CI_NODE_INDEX" ]; then
22
if [ "$PIGLIT_PROFILES" != "${PIGLIT_PROFILES% *}" ]; then
23
echo "Can't parallelize piglit with multiple profiles"
29
if [ -n "$USE_CASELIST" ]; then
30
./piglit print-cmd $PIGLIT_TESTS $PIGLIT_PROFILES --format "{name}" > /tmp/case-list.txt
32
sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" /tmp/case-list.txt
34
PIGLIT_TESTS="--test-list /tmp/case-list.txt"
37
./piglit run -c -j${FDO_CI_CONCURRENT:-4} $PIGLIT_OPTIONS $PIGLIT_TESTS $PIGLIT_PROFILES $OLDPWD/results
39
if [ $retVal -ne 0 ]; then
40
echo "Found $(cat /tmp/version.txt), expected $VERSION"
44
PIGLIT_RESULTS=${PIGLIT_RESULTS:-$PIGLIT_PROFILES}
45
mkdir -p .gitlab-ci/piglit
46
./piglit summary console $OLDPWD/results \
47
| tee ".gitlab-ci/piglit/$PIGLIT_RESULTS.txt.orig" \
50
| sed '/^summary:/Q' \
51
> .gitlab-ci/piglit/$PIGLIT_RESULTS.txt
53
if [ -n "$USE_CASELIST" ]; then
54
# Just filter the expected results based on the tests that were actually
55
# executed, and switch to the version with no summary
56
cat .gitlab-ci/piglit/$PIGLIT_RESULTS.txt.orig | sed '/^summary:/Q' | rev \
57
| cut -f2- -d: | rev | sed "s/$/:/g" > /tmp/executed.txt
58
grep -F -f /tmp/executed.txt $OLDPWD/install/$PIGLIT_RESULTS.txt \
59
> .gitlab-ci/piglit/$PIGLIT_RESULTS.txt.baseline || true
61
cp $OLDPWD/install/$PIGLIT_RESULTS.txt .gitlab-ci/piglit/$PIGLIT_RESULTS.txt.baseline
64
if diff -q .gitlab-ci/piglit/$PIGLIT_RESULTS.txt{.baseline,}; then
68
./piglit summary html --exclude-details=pass $OLDPWD/results/summary $OLDPWD/results
70
echo Unexpected change in results:
71
diff -u .gitlab-ci/piglit/$PIGLIT_RESULTS.txt{.baseline,}