~siretart/libav/merge.raring.libav-0.8.6

« back to all changes in this revision

Viewing changes to tests/fate-run.sh

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:30:00 UTC
  • mfrom: (1.4.1)
  • mto: (1.3.11 sid) (26.1.1 quantal-security)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120112223000-s1reiy1e28hnix42
Tags: upstream-0.8~beta2
ImportĀ upstreamĀ versionĀ 0.8~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
ref=${7:-"${base}/ref/fate/${test}"}
17
17
fuzz=$8
18
18
threads=${9:-1}
19
 
thread_type=${10:-3}
 
19
thread_type=${10:-frame+slice}
20
20
 
21
21
outdir="tests/data/fate"
22
22
outfile="${outdir}/${test}"
49
49
    $target_exec $target_path/"$@"
50
50
}
51
51
 
52
 
ffmpeg(){
53
 
    run ffmpeg -v 0 -threads $threads -thread_type $thread_type "$@"
 
52
avconv(){
 
53
    run avconv -nostats -threads $threads -thread_type $thread_type "$@"
54
54
}
55
55
 
56
56
framecrc(){
57
 
    ffmpeg "$@" -f framecrc -
 
57
    avconv "$@" -f framecrc -
58
58
}
59
59
 
60
60
framemd5(){
61
 
    ffmpeg "$@" -f framemd5 -
 
61
    avconv "$@" -f framemd5 -
62
62
}
63
63
 
64
64
crc(){
65
 
    ffmpeg "$@" -f crc -
 
65
    avconv "$@" -f crc -
66
66
}
67
67
 
68
68
md5(){
69
 
    ffmpeg "$@" md5:
 
69
    avconv "$@" md5:
70
70
}
71
71
 
72
72
pcm(){
73
 
    ffmpeg "$@" -vn -f s16le -
 
73
    avconv "$@" -vn -f s16le -
74
74
}
75
75
 
76
76
regtest(){
77
77
    t="${test#$2-}"
78
78
    ref=${base}/ref/$2/$t
79
 
    cleanfiles="$cleanfiles $outfile $errfile"
80
 
    outfile=tests/data/regression/$2/$t
81
 
    errfile=tests/data/$t.$2.err
82
79
    ${base}/${1}-regression.sh $t $2 $3 "$target_exec" "$target_path" "$threads" "$thread_type"
83
80
}
84
81
 
107
104
                 file=$(echo tests/data/$d/$file)
108
105
                 ;;
109
106
    esac
110
 
    $target_exec $target_path/tests/seek_test $target_path/$file
 
107
    run libavformat/seek-test $target_path/$file
111
108
}
112
109
 
113
110
mkdir -p "$outdir"
126
123
        diff)   diff -u -w "$ref" "$outfile"            >$cmpfile ;;
127
124
        oneoff) oneoff     "$ref" "$outfile" "$fuzz"    >$cmpfile ;;
128
125
        stddev) stddev     "$ref" "$outfile" "$fuzz"    >$cmpfile ;;
 
126
        null)   cat               "$outfile"            >$cmpfile ;;
129
127
    esac
130
128
    cmperr=$?
131
129
    test $err = 0 && err=$cmperr