diff test/regressiontest.sh @ 34:930cf86113b7 refactors

Make regressiontest.sh independent of the path it is run from
author Chris Cannam
date Thu, 13 Nov 2014 09:50:09 +0000
parents 7784b0a0dd4d
children
line wrap: on
line diff
--- a/test/regressiontest.sh	Thu Nov 13 07:45:01 2014 +0000
+++ b/test/regressiontest.sh	Thu Nov 13 09:50:09 2014 +0000
@@ -1,10 +1,10 @@
 #!/bin/bash
 
-# Run from top-level match-vamp directory
+mydir=$(dirname "$0")
 
 sonic-annotator --minversion 1.1 || exit 1
 
-VAMP_PATH=. \
+VAMP_PATH="${mydir}/.." \
     sonic-annotator \
     -d vamp:match-vamp-plugin:match \
     --multiplex \