diff --git a/run_tests b/run_tests new file mode 120000 index 0000000..494fdff --- /dev/null +++ b/run_tests @@ -0,0 +1 @@ +./src/tests/run_tests.sh \ No newline at end of file diff --git a/src/tests/run_tests.sh b/src/tests/run_tests.sh index 50d2dd0..90664e0 100755 --- a/src/tests/run_tests.sh +++ b/src/tests/run_tests.sh @@ -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