File: run_test.sh

package info (click to toggle)
kotlin-mode 0.0~git20230123.fddd747-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 960 kB
  • sloc: lisp: 3,453; sh: 69; makefile: 45
file content (16 lines) | stat: -rwxr-xr-x 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Run tests.  Used in Makefile.

if ! [ -d ".cask/$(./scripts/invoke_cask.sh eval '(princ emacs-version)')/elpa/ert-runner-"* ]
then
    ./scripts/invoke_cask.sh install || exit 1
fi

./scripts/invoke_cask.sh emacs --version || exit 1
./scripts/invoke_cask.sh emacs --batch -q \
  --eval "(add-to-list 'load-path \"$(readlink -f .)\")" \
  --eval "(add-to-list 'load-path \"$(readlink -f .)/test\")" \
  -f batch-byte-compile \
  *.el test/*.el || exit 1
./scripts/invoke_cask.sh exec ert-runner -L . -L test