~ubuntu-branches/ubuntu/utopic/libav/utopic-proposed

« back to all changes in this revision

Viewing changes to tests/fate.sh

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler, Reinhard Tartler, Rico Tzschichholz
  • Date: 2014-08-30 11:02:45 UTC
  • mfrom: (1.3.47 sid)
  • Revision ID: package-import@ubuntu.com-20140830110245-io3dg7q85wfr7125
Tags: 6:11~beta1-2
[ Reinhard Tartler ]
* Make libavcodec-dev depend on libavresample-dev

[ Rico Tzschichholz ]
* Some fixes and leftovers from soname bumps

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
test -n "$repo"    || die "repo not specified"
20
20
test -d "$samples" || die "samples location not specified"
21
21
 
 
22
: ${branch:=master}
 
23
 
22
24
lock(){
23
25
    lock=$1/fate.lock
24
26
    (set -C; exec >$lock) 2>/dev/null || return
28
30
checkout(){
29
31
    case "$repo" in
30
32
        file:*|/*) src="${repo#file:}"      ;;
31
 
        git:*)     git clone --quiet "$repo" "$src" ;;
 
33
        git:*)     git clone --quiet --branch "$branch" "$repo" "$src" ;;
32
34
    esac
33
35
}
34
36
 
35
37
update()(
36
38
    cd ${src} || return
37
39
    case "$repo" in
38
 
        git:*) git fetch --force; git reset --hard origin/master ;;
 
40
        git:*) git fetch --force; git reset --hard "origin/$branch" ;;
39
41
    esac
40
42
)
41
43
 
79
81
 
80
82
report(){
81
83
    date=$(date -u +%Y%m%d%H%M%S)
82
 
    echo "fate:0:${date}:${slot}:${version}:$1:$2:${comment}" >report
 
84
    echo "fate:1:${date}:${slot}:${version}:$1:$2:${branch}:${comment}" >report
83
85
    cat ${build}/config.fate ${build}/tests/data/fate/*.rep >>report
84
86
    test -n "$fate_recv" && $tar report *.log | gzip | $fate_recv
85
87
}