diff --git a/tests/benchmarks/comparison.sh b/tests/benchmarks/comparison.sh index be188293..c9eb5237 100755 --- a/tests/benchmarks/comparison.sh +++ b/tests/benchmarks/comparison.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +cd "$(dirname "${BASH_SOURCE[0]}")" + if ! which hyperfine > /dev/null 2>&1; then echo "'hyperfine' does not seem to be installed." echo "You can get it here: https://github.com/sharkdp/hyperfine" diff --git a/tests/benchmarks/run-benchmarks.sh b/tests/benchmarks/run-benchmarks.sh index 95dd420c..c3a15509 100755 --- a/tests/benchmarks/run-benchmarks.sh +++ b/tests/benchmarks/run-benchmarks.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +cd "$(dirname "${BASH_SOURCE[0]}")" + if ! which hyperfine > /dev/null 2>&1; then echo "'hyperfine' does not seem to be installed." echo "You can get it here: https://github.com/sharkdp/hyperfine" diff --git a/tests/syntax-tests/update.sh b/tests/syntax-tests/update.sh index beb16ffa..b4752f05 100755 --- a/tests/syntax-tests/update.sh +++ b/tests/syntax-tests/update.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +cd "$(dirname "${BASH_SOURCE[0]}")" + python="python3" if ! command -v python3 &>/dev/null; then python="python"; fi "$python" create_highlighted_versions.py -O highlighted