added link to run tests and made the shell script work when called from any directory.

This commit is contained in:
2016-03-22 16:44:55 +00:00
parent 8e4d40ab28
commit 5f20299e62
2 changed files with 9 additions and 0 deletions
Symlink
+1
View File
@@ -0,0 +1 @@
./src/tests/run_tests.sh
+8
View File
@@ -1 +1,9 @@
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
cd $DIR
python -m unittest -v audiofile_tests