Browse Source

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>
lilik-openwrt-22.03
Paul Spooren 4 years ago
parent
commit
64cf9fb779
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      utils/prometheus/test.sh

+ 3
- 0
utils/prometheus/test.sh View File

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

Loading…
Cancel
Save