# HG changeset patch # User Chris Cannam # Date 1287407777 -3600 # Node ID aa521baace07e465209545caf7a4fa34296cd78e # Parent 9cc5e78dcfbd91a0ebb90ca33dc3c6c04d400b74 * Add test for output destination when input filename has more than one dot diff -r 9cc5e78dcfbd -r aa521baace07 tests/test-rdf-destinations.sh --- a/tests/test-rdf-destinations.sh Mon Oct 18 14:14:38 2010 +0100 +++ b/tests/test-rdf-destinations.sh Mon Oct 18 14:16:17 2010 +0100 @@ -9,6 +9,9 @@ outfile1=$mypath/audio/3clicks8.n3 outfile2=$mypath/audio/6clicks8.n3 +infile1dot=$mypath/audio/3.clicks.8.wav +outfile1dot=$mypath/audio/3.clicks.8.n3 + outfile3=$mypath/audio/3clicks8_vamp_vamp-example-plugins_percussiononsets_onsets.n3 outfile4=$mypath/audio/3clicks8_vamp_vamp-example-plugins_percussiononsets_detectionfunction.n3 outfile5=$mypath/audio/6clicks8_vamp_vamp-example-plugins_percussiononsets_onsets.n3 @@ -17,7 +20,7 @@ testplug=vamp:vamp-example-plugins:percussiononsets tmpttl=$mypath/tmp_1_$$.ttl -trap "rm -f $tmpttl $outfile1 $outfile2 $outfile3 $outfile4 $outfile5 $outfile6" 0 +trap "rm -f $tmpttl $outfile1 $outfile2 $outfile3 $outfile4 $outfile5 $outfile6 $infile1dot $outfile1dot" 0 fail() { echo "Test failed: $1" @@ -47,6 +50,20 @@ check_rdf $outfile1 "$ctx" +ctx="onsets transform, one audio file with dots in filename, default RDF writer destination" + +rm -f $outfile1 + +cp $infile1 $infile1dot + +$r -t $transformpfx-onsets.n3 -w rdf $infile1dot 2>/dev/null || \ + fail "Fails to run with $ctx" + +check_rdf $outfile1dot "$ctx" + +rm -f $infile1dot $outfile1dot + + ctx="onsets and df transforms, one audio file, default RDF writer destination" rm -f $outfile1