xref: /third_party/libdrm/intel/tests/test-batch.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/libdrm/intel/tests/
1d722e3fbSopenharmony_ci#!/bin/sh
2d722e3fbSopenharmony_ci
3d722e3fbSopenharmony_ciTEST_FILENAME=`echo "$0" | sed 's|\.sh$||'`
4d722e3fbSopenharmony_ci./test_decode $TEST_FILENAME
5d722e3fbSopenharmony_ci
6d722e3fbSopenharmony_ciret=$?
7d722e3fbSopenharmony_ci
8d722e3fbSopenharmony_ci# pretty-print a diff showing what happened, and leave the dumped
9d722e3fbSopenharmony_ci# around for possibly moving over the ref.
10d722e3fbSopenharmony_ciif test $ret = 1; then
11d722e3fbSopenharmony_ci    REF_FILENAME="$TEST_FILENAME-ref.txt"
12d722e3fbSopenharmony_ci    NEW_FILENAME="$TEST_FILENAME-new.txt"
13d722e3fbSopenharmony_ci    ./test_decode $TEST_FILENAME -dump > $NEW_FILENAME
14d722e3fbSopenharmony_ci    if test $? = 0; then
15d722e3fbSopenharmony_ci	echo "Differences:"
16d722e3fbSopenharmony_ci	diff -u $REF_FILENAME $NEW_FILENAME
17d722e3fbSopenharmony_ci    fi
18d722e3fbSopenharmony_cifi
19d722e3fbSopenharmony_ci
20d722e3fbSopenharmony_ciexit $ret
21

Indexes created Thu Nov 07 10:32:03 CST 2024