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:
parent
b36bb173b3
commit
64cf9fb779
1 changed files with 3 additions and 0 deletions
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%%-*}"
|
Loading…
Reference in a new issue