mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
16 lines
444 B
Bash
Executable file
16 lines
444 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
|
cd $HERE/..
|
|
|
|
run() {
|
|
nvim --headless --noplugin -u scripts/minimal_init.lua \
|
|
-c "PlenaryBustedDirectory lua/tests/indent/ { minimal_init = './scripts/minimal_init.lua' }"
|
|
}
|
|
|
|
if [[ $1 = '--summary' ]]; then
|
|
# really simple results summary by filtering plenary busted output
|
|
run 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
|
|
else
|
|
run
|
|
fi
|