comparison tests/test-summaries/test-summaries-testplugin.sh @ 236:a0d093495a1f

Activate summary value tests
author Chris Cannam
date Tue, 01 Mar 2016 12:20:47 +0000
parents 6a804920b4a8
children
comparison
equal deleted inserted replaced
235:6a804920b4a8 236:a0d093495a1f
6 tmpfile=$mypath/tmp_1_$$ 6 tmpfile=$mypath/tmp_1_$$
7 tmpfile2=$mypath/tmp_2_$$ 7 tmpfile2=$mypath/tmp_2_$$
8 8
9 trap "rm -f $tmpfile $tmpfile2" 0 9 trap "rm -f $tmpfile $tmpfile2" 0
10 10
11 for output in curve-vsr grid-fsr notes-regions; do 11 for output in curve-vsr grid-fsr; do
12 12
13 for summary in min max mean median mode sum variance sd count; do 13 for summary in min max mean median mode sum variance sd count; do
14 14
15 # grid-fsr is bulkier, and we're only really concerned that
16 # we're getting a sane result per bin, so just do min and max
17 # there
18 if [ "$output" = "grid-fsr" ]; then
19 case "$summary" in
20 mean|median|mode|sum|variance|sd|count) continue;;
21 esac
22 fi
23
15 id="$testplug:$output" 24 id="$testplug:$output"
16 expected="$mypath/expected/testplug-$output-$summary.csv" 25 expected="$mypath/expected/testplug-$output-$summary.csv"
17 26
18 cat "$expected" | grep -v '^#' > "$tmpfile2" 27 cat "$expected" | grep -v '^#' > "$tmpfile2"
19 28