From: Paul Spooren Date: Sun, 6 Sep 2020 09:14:14 +0000 (-1000) Subject: prometheus: add runtime test X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=64cf9fb779b052efb97b901d76ea818989638283;p=feed%2Fpackages.git 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 --- diff --git a/utils/prometheus/test.sh b/utils/prometheus/test.sh new file mode 100644 index 0000000000..54266ab4c5 --- /dev/null +++ b/utils/prometheus/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +prometheus --version 2>&1 | grep "${2%%-*}"