~ubuntu-branches/ubuntu/raring/libdrm/raring

« back to all changes in this revision

Viewing changes to intel/tests/gen6-3d.batch.sh

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-01-06 17:00:29 UTC
  • mfrom: (2.3.15 sid)
  • Revision ID: package-import@ubuntu.com-20120106170029-74zl4lt5h0yclxdd
Tags: 2.4.30-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/rules
  - debian/control:
    + Build libdrm-intel1 everywhere rather than just {i386,amd64}
      for Plymouth

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
TEST_FILENAME=`echo "$0" | sed 's|.sh||'`
 
4
./test_decode $TEST_FILENAME
 
5
 
 
6
ret=$?
 
7
 
 
8
# pretty-print a diff showing what happened, and leave the dumped
 
9
# around for possibly moving over the ref.
 
10
if test $ret = 1; then
 
11
    REF_FILENAME="$TEST_FILENAME-ref.txt"
 
12
    NEW_FILENAME="$TEST_FILENAME-new.txt"
 
13
    ./test_decode $TEST_FILENAME -dump > $NEW_FILENAME
 
14
    if test $? = 0; then
 
15
        echo "Differences:"
 
16
        diff -u $REF_FILENAME $NEW_FILENAME
 
17
    fi
 
18
fi
 
19
 
 
20
exit $ret