# HG changeset patch # User Chris Cannam # Date 1399556381 -3600 # Node ID 03fbd6a204fd94d4b8d07e8d8200c412cdca5bdc # Parent 21efe7d37c4caa09c535e7a2f32adad0db620ed8 Add script to run timing and evaluation for a specific revision diff -r 21efe7d37c4c -r 03fbd6a204fd testdata/timing/run-for-revision.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testdata/timing/run-for-revision.sh Thu May 08 14:39:41 2014 +0100 @@ -0,0 +1,38 @@ +#!/bin/sh + +revision="$1" + +if [ -z "$revision" ]; then + echo "Usage: run-for-revision.sh " + exit 2 +fi + +tmppath="../../../silvet-hg-$revision-$$" + +echo +echo "Running timing and validation test script for revision $revision..." + +echo +echo "Cloning into $tmppath..." + +hg clone -r"$revision" ../.. "$tmppath" || exit 1 + +echo +echo "Building..." + +( cd "$tmppath" && make -f Makefile.linux ) || exit 1 + +echo +echo "Copying plugin to local directory..." + +cp "$tmppath"/silvet.so ../.. || exit 1 + +rm -r "$tmppath" + +echo +echo "Running timing and evaluation script..." + +./run.sh + +echo +echo "Done, for revision $revision" diff -r 21efe7d37c4c -r 03fbd6a204fd testdata/timing/run.sh --- a/testdata/timing/run.sh Thu May 08 13:54:08 2014 +0100 +++ b/testdata/timing/run.sh Thu May 08 14:39:41 2014 +0100 @@ -22,6 +22,8 @@ outfile="/tmp/$$" +trap 'rm -f "$outfile" "$outfile.lab"' 0 + time sonic-annotator \ --writer csv \ --csv-one-file "$outfile" \ @@ -50,4 +52,3 @@ echo -rm "$outfile" "$outfile.lab"