sync code with last improvements from OpenBSD
This commit is contained in:
commit
88965415ff
26235 changed files with 29195616 additions and 0 deletions
20
lib/libdrm/intel/tests/test-batch.sh
Executable file
20
lib/libdrm/intel/tests/test-batch.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
TEST_FILENAME=`echo "$0" | sed 's|\.sh$||'`
|
||||
./test_decode $TEST_FILENAME
|
||||
|
||||
ret=$?
|
||||
|
||||
# pretty-print a diff showing what happened, and leave the dumped
|
||||
# around for possibly moving over the ref.
|
||||
if test $ret = 1; then
|
||||
REF_FILENAME="$TEST_FILENAME-ref.txt"
|
||||
NEW_FILENAME="$TEST_FILENAME-new.txt"
|
||||
./test_decode $TEST_FILENAME -dump > $NEW_FILENAME
|
||||
if test $? = 0; then
|
||||
echo "Differences:"
|
||||
diff -u $REF_FILENAME $NEW_FILENAME
|
||||
fi
|
||||
fi
|
||||
|
||||
exit $ret
|
Loading…
Add table
Add a link
Reference in a new issue