Debian Codegraph @

debian/tests/mysofa2json

raw symbols SCIP
1 #!/bin/sh
2
3 export MYSOFA2JSON=mysofa2json
4
5 ext="json.bz2"
6
7 res=0
8
9 comparator() {
10 # urgh, some files need the compareIgnoreNew script, others use the normal compare script
11 # upstream hardcodes this in CMakeLists.txt
12 case "$1" in
13 H20_44K_16bit_256tap_FIR_SOFA)
14 echo "./tests/compareIgnoreNew.sh"
15 ;;
16 MIT_KEMAR_normal_pinna)
17 echo "./tests/compareIgnoreNew.sh"
18 ;;
19 dtf_nh2)
20 echo "./tests/compareIgnoreNew.sh"
21 ;;
22 hrtf_c_nh898)
23 echo "./tests/compareIgnoreNew.sh"
24 ;;
25 *)
26 echo "./tests/compare.sh"
27 ;;
28 esac
29 }
30
31 for f in tests/*".${ext}"; do
32 x=${f%.${ext}}
33 compare=$(comparator "${x##*/}")
34 echo "============== ${compare} ${x} ================="
35 if ! "${compare}" "${x}"; then
36 res=1
37 fi
38 done
39
40 exit ${res}