mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
prometheus: add runtime test
Run trivial check if the compiled binary works on the architecture. Do so by comparing the printed version by the binary with the Makefile version. The release is OpenWrt specific, so cut it off. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
3
utils/prometheus/test.sh
Normal file
3
utils/prometheus/test.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
prometheus --version 2>&1 | grep "${2%%-*}"
|
||||
Reference in New Issue
Block a user