comparison tests/test-as-advertised.sh @ 118:0fe5abb56a6e test-reorg

Pull more stuff up into include file
author Chris Cannam
date Wed, 08 Oct 2014 14:20:45 +0100
parents 94d988cef54e
children
comparison
equal deleted inserted replaced
117:5be4995f4029 118:0fe5abb56a6e
1 #!/bin/bash 1 #!/bin/bash
2 2
3 mypath=`dirname $0` 3 . test-include.sh
4 r=$mypath/../sonic-annotator
5 4
6 infile=$mypath/audio/3clicks8.wav 5 infile=$mypath/audio/3clicks8.wav
7 testplug=vamp:vamp-example-plugins:percussiononsets
8 tmpdir=$mypath/tmp_1_$$.dir 6 tmpdir=$mypath/tmp_1_$$.dir
9 tmpwav=$tmpdir/test.wav 7 tmpwav=$tmpdir/test.wav
10 8
11 trap "rm -rf $tmpdir" 0 9 trap "rm -rf $tmpdir" 0
12
13 fail() {
14 echo "Test failed: $1"
15 exit 1
16 }
17 10
18 types=`\ 11 types=`\
19 $r --help 2>&1 | \ 12 $r --help 2>&1 | \
20 grep 'Supported writer types are:' | \ 13 grep 'Supported writer types are:' | \
21 sed -e 's/^.*://' -e 's/[,\.]//g' \ 14 sed -e 's/^.*://' -e 's/[,\.]//g' \