feat: first draft
This commit is contained in:
parent
bf2dfb970d
commit
fefd6ad5e4
48 changed files with 7201 additions and 1 deletions
24
run_tests.sh
Executable file
24
run_tests.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p ".testenv/config/nvim"
|
||||
mkdir -p ".testenv/data/nvim"
|
||||
mkdir -p ".testenv/state/nvim"
|
||||
mkdir -p ".testenv/run/nvim"
|
||||
mkdir -p ".testenv/cache/nvim"
|
||||
PLUGINS=".testenv/data/nvim/site/pack/plugins/start"
|
||||
|
||||
if [ ! -e "$PLUGINS/plenary.nvim" ]; then
|
||||
git clone --depth=1 https://github.com/nvim-lua/plenary.nvim.git "$PLUGINS/plenary.nvim"
|
||||
else
|
||||
(cd "$PLUGINS/plenary.nvim" && git pull)
|
||||
fi
|
||||
|
||||
XDG_CONFIG_HOME=".testenv/config" \
|
||||
XDG_DATA_HOME=".testenv/data" \
|
||||
XDG_STATE_HOME=".testenv/state" \
|
||||
XDG_RUNTIME_DIR=".testenv/run" \
|
||||
XDG_CACHE_HOME=".testenv/cache" \
|
||||
nvim --headless -u tests/minimal_init.lua \
|
||||
-c "PlenaryBustedDirectory ${1-tests} { minimal_init = './tests/minimal_init.lua' }"
|
||||
echo "Success"
|
||||
Loading…
Add table
Add a link
Reference in a new issue