view test/regressiontest.sh @ 86:f07b9b7f1ab6 refactors

Previous commit was a mistake: the ahead-of-time business is in Finder::getExpandDirection. In fact we were failing to swap advance directions in forward path when writing to the "other" finder. This does not actually affect the backward path calculation, but it does mean we can restore the sanity check.
author Chris Cannam
date Thu, 27 Nov 2014 12:08:16 +0000
parents 930cf86113b7
children
line wrap: on
line source
#!/bin/bash

mydir=$(dirname "$0")

sonic-annotator --minversion 1.1 || exit 1

VAMP_PATH="${mydir}/.." \
    sonic-annotator \
    -d vamp:match-vamp-plugin:match \
    --multiplex \
    ~/Music/cc-kids-abrsm-dataset/ABRSM/Allegro\ in\ G.mp3 \
    ~/Music/cc-kids-abrsm-dataset/Kids/Allegro\ in\ G.mp3 \
    -w csv --csv-stdout 2>/dev/null | sed 's/^[^,]*,//' > /tmp/$$ || exit 1

sdiff -w 78 /tmp/$$ `dirname $0`/expected.csv && echo Passed

rm /tmp/$$