prometheus: add runtime test
authorPaul Spooren <mail@aparcar.org>
Sun, 6 Sep 2020 09:14:14 +0000 (23:14 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 17 Sep 2020 19:48:23 +0000 (09:48 -1000)
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>
utils/prometheus/test.sh [new file with mode: 0644]

diff --git a/utils/prometheus/test.sh b/utils/prometheus/test.sh
new file mode 100644 (file)
index 0000000..54266ab
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+prometheus --version 2>&1 | grep "${2%%-*}"