prometheus-node-exporter-lua: add test / skip test-version

test.sh is pretty basic and will not fail if one of the plugin fails,
which is fine as most plugins will fail in CI anyway.

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
Etienne Champetier committed 2026-07-05 18:16:22 +03:00
1 parent cc886eb990
commit 4741715d8e
2 files changed
+17

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exit 0
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
prometheus-node-exporter-lua-openwrt)
# call ubus outside scape, so skip the check
exit 0
;;
*)
prometheus-node-exporter-lua | grep node_scrape_collector_success
;;
esac