diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-09-05 09:54:40 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-09-05 09:54:40 +0300 |
commit | f934fe04bb96c6c6a8d5e90ae4bb03539996cb3d (patch) | |
tree | 611c30b20fcfef6b8cb5ceb23d373d2d030d360d | |
parent | 0fd62a6760a7263ad43f928f3a00df20c09ab606 (diff) | |
download | vmdb2-f934fe04bb96c6c6a8d5e90ae4bb03539996cb3d.tar.gz |
test(check): verify plugin files look OKish
-rwxr-xr-x | check | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -7,6 +7,21 @@ echo Running unit tests ============================================ python3 -m CoverageTestRunner --ignore-missing-from=without-tests yarns vmdb echo +echo Checking every plugin looks OK ============================================ +for file in vmdb/plugins/*.py +do + case "$file" in + *_plugin.py) ;; + *) echo "File $file should end in _plugin.py" 1>&2 ; exit 1 ;; + esac + if ! grep -q 'class .*Plugin' "$file" + then + echo "File $file does not seem to have a Plugin class" 1>&2 + exit 1 + fi +done +echo + if command -v sp-codegen > /dev/null then echo Running Subplot ============================================ |