File: test-decode

package info (click to toggle)
libde265 1.0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,088 kB
  • sloc: cpp: 40,575; sh: 4,184; asm: 1,223; ansic: 368; makefile: 350
file content (23 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

DECODE=/usr/bin/libde265-dec265
if [ ! -f /usr/bin/libde265-dec265 ]; then
    DECODE=./dec265/dec265
fi 

if [ ! -f $DECODE ]; then 
    echo Decode utility not found
    exit 1
fi

output=`mktemp`

$DECODE -q -c -t 2 ./debian/tests/tree.h265 > $output 2>&1  

if ! grep -L "nFrames decoded: 31" $output; then 
    echo Decoding failed
    cat $output
    exit 255
fi