comparison tests/test-summaries.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 8b4924a9a072
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 infile2=$mypath/audio/6clicks8.wav 6 infile2=$mypath/audio/6clicks8.wav
8 tmpfile=$mypath/tmp_1_$$ 7 tmpfile=$mypath/tmp_1_$$
9 tmpcanonical=$mypath/tmp_2_$$ 8 tmpcanonical=$mypath/tmp_2_$$
10 expcanonical=$mypath/tmp_exp_2_$$ 9 expcanonical=$mypath/tmp_exp_2_$$
11 tmpcmp1=$mypath/tmp_3_$$ 10 tmpcmp1=$mypath/tmp_3_$$
12 tmpcmp2=$mypath/tmp_4_$$ 11 tmpcmp2=$mypath/tmp_4_$$
13 12
14 trap "rm -f $tmpfile $tmpcanonical $expcanonical $tmpcmp1 $tmpcmp2" 0 13 trap "rm -f $tmpfile $tmpcanonical $expcanonical $tmpcmp1 $tmpcmp2" 0
15
16 . test-include.sh
17 14
18 compare() { 15 compare() {
19 a=$1 16 a=$1
20 b=$2 17 b=$2
21 sort $a > $tmpcmp1 18 sort $a > $tmpcmp1