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:
Paul Spooren 2020-09-05 23:14:14 -10:00
parent b36bb173b3
commit 64cf9fb779

3
utils/prometheus/test.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
prometheus --version 2>&1 | grep "${2%%-*}"