Commit Graph

23 Commits

Author SHA1 Message Date
Lars Kruse 758c3ecdd7 Tests: add ruby style and code checks via rubocop
At the moment all plugins fail the test out of various reasons.
Thus they are exempted from causing test failures.

But future (new) plugins will fail the test and thus indicate the
relevant steps to fix issues before a plugin is included.
2020-08-25 17:44:17 +02:00
Lars Kruse e5abdeeb12 tests: enable shellcheck for shell-based plugins and flake8 for python-based plugins
Many plugins are still failing these tests.
These expected failures are listed in a file
(t/test-exception-wrapper.expected-failures)
A wrapper script is used for running the tests and comparing the result
with the expectation (based on the file being listed in the above file).

This allows to test all new plugins, while ignoring all known failures.
2019-08-13 05:16:13 +02:00
Steve Schnepp 878e733430 t: fixing skip 2019-07-27 21:15:35 +02:00
Steve Schnepp f42fdaa669 t: ignore empty files 2019-07-27 21:03:42 +02:00
Steve Schnepp 58f0ab64f3 travis: remove the check for the nvidia plugin 2019-07-27 16:54:43 +02:00
Lars Kruse 6c0e154e07 tests: add "shellcheck" tests for "ksh" scripts 2018-03-09 06:10:25 +01:00
Lars Kruse ebe5be1d06 tests: verify executable flag for plugins with shebang 2018-03-08 23:43:16 +01:00
Lars Kruse 29e6f53cad test: removed duplicate branch for "zsh"
added (by mistake) in c503e0dbcf
2018-03-08 23:21:55 +01:00
Lars Kruse 7ec35e1753 tests: work around 'checkbashisms' complaining about "command -v"
"command -v" should be the preferred way of determining the location (or
existence) of an executable.
Sadly "checkbashisms" interprets "command -v" as a possible bashism,
since "command -v" was introduced in IEEE 1003.1 2013.
But checkbashisms checks for compliance with IEEE 1003.1 2004 - here
"command -v" is listed only as a portability extension.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733511 for the
discussion about checkbashism and "command -v".

See https://unix.stackexchange.com/a/85250 for the discussion about
"command -v" being the most portable check for a program's location.

The workaround itself is bit ugly: 'checkbashisms' is monkey-patched
and fed into the perl interpreter. This makes it harder to re-run the
check command manually (due to complicated quoting).
2018-03-08 04:26:29 +01:00
sumpfralle 78dea36c9c Merge pull request #648 from akorn/master
plugins/virtualization/vserver/vserver_jiffies: several enhancements (but zsh)
2016-10-21 01:45:00 +02:00
Lars Kruse c503e0dbcf CI / Travis: add zsh syntax check 2016-10-17 02:21:16 +02:00
Lars Kruse d1a8965b5a tests: test compiling with python3 if given as shebang interpreter
Currently plugins fail to compile if they use Python 3 syntax features,
even though they use a correct shebang.
2015-10-30 06:09:12 +01:00
András Korn a6ea4c428c Add zsh syntax check to test.t 2015-09-26 17:25:54 +02:00
Stig Sandbeck Mathisen f007901b64 Check python scirpts with "py_compile"
- leaves a mess behind, but works
2014-10-05 11:24:14 +02:00
Stig Sandbeck Mathisen 08f196eb10 perltidy a bit 2014-10-05 11:23:53 +02:00
Stig Sandbeck Mathisen beca89999e Handle perl -T checks 2014-10-05 00:17:23 +02:00
Stig Sandbeck Mathisen 9b01da77ba improve output and disable python checks for now 2014-10-04 23:52:40 +02:00
Stig Sandbeck Mathisen 673303f127 "handle" expect scripts by pretending syntax is ok 2014-10-04 21:49:45 +02:00
Stig Sandbeck Mathisen 6b5e75a04c Tidy with perltidy 2014-10-04 20:17:52 +02:00
Stig Sandbeck Mathisen c4ed6e7737 remove shell quoting, it is not needed 2014-10-04 20:16:59 +02:00
Stig Sandbeck Mathisen 92e7aaf801 relax bash regexp a bit, to allow for /usr/bin/env bash 2014-10-04 19:43:08 +02:00
Stig Sandbeck Mathisen 2333696650 Syntax check ksh 2014-10-04 19:33:07 +02:00
Stig Sandbeck Mathisen 80cb37418a Add automated tests 2014-10-04 15:40:28 +02:00