debian/tests/run-tests
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | PKG="lualine" |
| 6 | |
| 7 | if nvim --headless \ |
| 8 | +"lua require('$PKG').setup{}" \ |
| 9 | +'qa!'; then |
| 10 | echo "OK $PKG loaded without errors" |
| 11 | else |
| 12 | echo "ERROR $PKG failed to load" |
| 13 | exit 1 |
| 14 | fi |
| 15 | |
| 16 | if nvim --headless \ |
| 17 | +"silent! help $PKG" \ |
| 18 | +"if &buftype ==# 'help' | qa! | else | cquit 1 | endif"; then |
| 19 | echo "OK :help $PKG exists" |
| 20 | else |
| 21 | echo "ERROR :help $PKG not found" |
| 22 | exit 1 |
| 23 | fi |