| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | export MYSOFA2JSON=mysofa2json |
| 4 | |
| 5 | ext="json.bz2" |
| 6 | |
| 7 | res=0 |
| 8 | |
| 9 | comparatorscip-shell shell libmysofa 1.3.3+dfsg-1 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 | echoscip-shell system . . echo. "./tests/compareIgnoreNew.sh" |
| 15 | ;; |
| 16 | MIT_KEMAR_normal_pinna) |
| 17 | echoscip-shell system . . echo. "./tests/compareIgnoreNew.sh" |
| 18 | ;; |
| 19 | dtf_nh2) |
| 20 | echoscip-shell system . . echo. "./tests/compareIgnoreNew.sh" |
| 21 | ;; |
| 22 | hrtf_c_nh898) |
| 23 | echoscip-shell system . . echo. "./tests/compareIgnoreNew.sh" |
| 24 | ;; |
| 25 | *) |
| 26 | echoscip-shell system . . echo. "./tests/compare.sh" |
| 27 | ;; |
| 28 | esac |
| 29 | } |
| 30 | |
| 31 | for f in tests/*".${ext}"; do |
| 32 | x=${f%.${ext}} |
| 33 | compare=$(comparatorscip-shell shell libmysofa 1.3.3+dfsg-1 comparator(). "${x##*/}") |
| 34 | echoscip-shell system . . echo. "============== ${compare} ${x} =================" |
| 35 | if ! "${compare}" "${x}"; then |
| 36 | res=1 |
| 37 | fi |
| 38 | done |
| 39 | |
| 40 | exit ${res} |