Add some basic tests for bin commands

main
Ensar Sarajčić 2022-05-05 16:13:37 +02:00
parent 1a9cfeed82
commit 31f134213f
4 changed files with 21 additions and 0 deletions

View File

@ -34,6 +34,11 @@ jobs:
run: make check_neovim
env:
DOTFILES_CI: 1
- name: Run tests
if: ${{ matrix.platform != 'windows-latest' }}
run: make run_tests
env:
DOTFILES_CI: 1
create-key:
strategy:
matrix:

View File

@ -315,6 +315,11 @@ check_neovim: check_os
@echo "Doing a basic neovim startup and quit"
@nvim --headless -c 'set display-=msgsep' -c 'quitall'
.PHONY: run_tests
run_tests: check_os
@echo "Running all tests from tests/"
@./tests/run_all
.PHONY: oh_my_zsh
oh_my_zsh: check_os
@echo "Installing oh-my-zsh..."

View File

@ -0,0 +1,2 @@
test $(aursearch "neovim-rpc-api") = "neovim-rpc-api-explorer"
test $(aursearch "neovim-rpc-api-explorer") = "neovim-rpc-api-explorer"

9
tests/run_all 100755
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -ev
for file in $(dirname $0)/*; do
if [ ! "$file" = $(dirname $0)/run_all ]; then
. $file
fi
done # Running tests after this