debian/tests/test-decode
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | DECODE=/usr/bin/libde265-dec265 |
| 6 | if [ ! -f /usr/bin/libde265-dec265 ]; then |
| 7 | DECODE=./dec265/dec265 |
| 8 | fi |
| 9 | |
| 10 | if [ ! -f $DECODE ]; then |
| 11 | echo Decode utility not found |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | output=`mktemp` |
| 16 | |
| 17 | $DECODE -q -c -t 2 ./debian/tests/tree.h265 > $output 2>&1 |
| 18 | |
| 19 | if ! grep -L "nFrames decoded: 31" $output; then |
| 20 | echo Decoding failed |
| 21 | cat $output |
| 22 | exit 255 |
| 23 | fi |