Removes the need for the installation to copy the trondheim wav file into the test folder. The test will now run using the copy in pts-shared.
Code:
diff --git a/pts/test-resources/encode-flac/install.sh b/pts/test-resources/encode-flac/install.sh index 285d515..997826e 100644 --- a/pts/test-resources/encode-flac/install.sh +++ b/pts/test-resources/encode-flac/install.sh @@ -2,11 +2,6 @@ cd $1 -if [ ! -f pts-trondheim.wav ] - then - tar -xvf ../pts-shared/pts-trondheim-wav.tar.gz -fi - THIS_DIR=$(pwd) mkdir $THIS_DIR/flac_ @@ -19,6 +14,6 @@ cd .. rm -rf flac-1.2.1/ echo "#!/bin/sh -/usr/bin/time -f \"WAV To FLAC Encode Time: %e Seconds\" ./flac_/bin/flac -s --best pts-trondheim.wav 2>&1 +/usr/bin/time -f \"WAV To FLAC Encode Time: %e Seconds\" ./flac_/bin/flac -s --best ../pts-shared/pts-trondheim.wav -o ./pts-trondheim.flac 2>&1 rm -f pts-trondheim.flac" > flac chmod +x flac
Comment