summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-05 09:54:40 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-05 09:54:40 +0300
commitf934fe04bb96c6c6a8d5e90ae4bb03539996cb3d (patch)
tree611c30b20fcfef6b8cb5ceb23d373d2d030d360d
parent0fd62a6760a7263ad43f928f3a00df20c09ab606 (diff)
downloadvmdb2-f934fe04bb96c6c6a8d5e90ae4bb03539996cb3d.tar.gz
test(check): verify plugin files look OKish
-rwxr-xr-xcheck15
1 files changed, 15 insertions, 0 deletions
diff --git a/check b/check
index 101da55..82d1ceb 100755
--- a/check
+++ b/check
@@ -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 ============================================