aboutsummaryrefslogtreecommitdiff
path: root/test/shared/run-func.bash
blob: f5d6f96d6c12f10e3636b4f21db2914f729851d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

set -euo pipefail

func="$1"
shift

# Avoid using git to get project directory, due to
# https://github.com/radian-software/apheleia/pull/89#issuecomment-1107319617

cd "$(dirname "$0")/../.."

exec emacs --batch -L . "$@" \
     --eval "(setq debug-on-error t)" -f "${func}"