view test/regressiontest.sh @ 30:7784b0a0dd4d

Put the retrievePath logic in Finder (was in the plugin itself)
author Chris Cannam
date Fri, 31 Oct 2014 15:42:40 +0000
parents 9f60d097f0b2
children 930cf86113b7
line wrap: on
line source
#!/bin/bash

# Run from top-level match-vamp directory

sonic-annotator --minversion 1.1 || exit 1

VAMP_PATH=. \
    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/$$