diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-09-05 13:55:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 13:55:06 -0700 |
commit | 858c056133ed50af8dc31fdeee1638cb69ea2c69 (patch) | |
tree | 14bdb76032804152df438f5ffb4a5d77d369c8e0 /test/functional/helpers.lua | |
parent | 8b5c6a1b73206185e2451a92a5f8ca0036ca2212 (diff) | |
parent | 8705fbf77c067a907caf1920a0852fdb8619c649 (diff) | |
download | rneovim-858c056133ed50af8dc31fdeee1638cb69ea2c69.tar.gz rneovim-858c056133ed50af8dc31fdeee1638cb69ea2c69.tar.bz2 rneovim-858c056133ed50af8dc31fdeee1638cb69ea2c69.zip |
Support for :perl, :perlfile, :perldo and perleval() (#12809)
* support for :perl, :perlfile, :perldo and perleval()
* document that the perl provider doesn't currently work on Windows
* document that the perl legacy interface is now also supported
* added perleval() documentation
* import legacy perl interface tests
* only perl 5.22+ is supported
* healtcheck: use g:perl_host_prog if its set instead
using just 'perl' isn't correct as it may not be the version requested.
ditto for 'cpanm', rather go through 'App::cpanminus' to find the latest
perl version
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index e8435cd3b7..82b6fb42e8 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -768,9 +768,12 @@ function module.new_pipename() end function module.missing_provider(provider) - if provider == 'ruby' or provider == 'node' or provider == 'perl' then + if provider == 'ruby' or provider == 'node' then local prog = module.funcs['provider#' .. provider .. '#Detect']() return prog == '' and (provider .. ' not detected') or false + elseif provider == 'perl' then + local errors = module.funcs['provider#'..provider..'#Detect']()[2] + return errors ~= '' and errors or false elseif provider == 'python' or provider == 'python3' then local py_major_version = (provider == 'python3' and 3 or 2) local errors = module.funcs['provider#pythonx#Detect'](py_major_version)[2] |