on master help sign in
Add change dir to script dir to allow running from project root dir
12340c1Matthias Devlamynck
tests/benchmarks/comparison.sh+2
@@ -1,5 +1,7 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2
2
3+cd "$(dirname "${BASH_SOURCE[0]}")"
4+
3if ! which hyperfine > /dev/null 2>&1; then
5if ! which hyperfine > /dev/null 2>&1; then
4 echo "'hyperfine' does not seem to be installed."
6 echo "'hyperfine' does not seem to be installed."
5 echo "You can get it here: https://github.com/sharkdp/hyperfine"
7 echo "You can get it here: https://github.com/sharkdp/hyperfine"
tests/benchmarks/run-benchmarks.sh+2
@@ -1,5 +1,7 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2
2
3+cd "$(dirname "${BASH_SOURCE[0]}")"
4+
3if ! which hyperfine > /dev/null 2>&1; then
5if ! which hyperfine > /dev/null 2>&1; then
4 echo "'hyperfine' does not seem to be installed."
6 echo "'hyperfine' does not seem to be installed."
5 echo "You can get it here: https://github.com/sharkdp/hyperfine"
7 echo "You can get it here: https://github.com/sharkdp/hyperfine"
tests/syntax-tests/update.sh+2
@@ -1,5 +1,7 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2
2
3+cd "$(dirname "${BASH_SOURCE[0]}")"
4+
3python="python3"
5python="python3"
4if ! command -v python3 &>/dev/null; then python="python"; fi
6if ! command -v python3 &>/dev/null; then python="python"; fi
5"$python" create_highlighted_versions.py -O highlighted
7"$python" create_highlighted_versions.py -O highlighted