Cross Reference: test-batch.sh
xref: /xsrc/external/mit/libdrm/dist/intel/tests/test-batch.sh
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/libdrm/dist/intel/tests/
1e88f27b3Smrg#!/bin/sh
2e88f27b3Smrg
39bd392adSmrgTEST_FILENAME=`echo "$0" | sed 's|\.sh$||'`
4e88f27b3Smrg./test_decode $TEST_FILENAME
5e88f27b3Smrg
6e88f27b3Smrgret=$?
7e88f27b3Smrg
8e88f27b3Smrg# pretty-print a diff showing what happened, and leave the dumped
9e88f27b3Smrg# around for possibly moving over the ref.
10e88f27b3Smrgif test $ret = 1; then
11e88f27b3Smrg    REF_FILENAME="$TEST_FILENAME-ref.txt"
12e88f27b3Smrg    NEW_FILENAME="$TEST_FILENAME-new.txt"
13e88f27b3Smrg    ./test_decode $TEST_FILENAME -dump > $NEW_FILENAME
14e88f27b3Smrg    if test $? = 0; then
15e88f27b3Smrg	echo "Differences:"
16e88f27b3Smrg	diff -u $REF_FILENAME $NEW_FILENAME
17e88f27b3Smrg    fi
18e88f27b3Smrgfi
19e88f27b3Smrg
20e88f27b3Smrgexit $ret
21

Indexes created Sat Nov 29 09:09:30 GMT 2025