From 64cf9fb779b052efb97b901d76ea818989638283 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 5 Sep 2020 23:14:14 -1000 Subject: [PATCH] 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 --- utils/prometheus/test.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 utils/prometheus/test.sh 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%%-*}" -- 2.30.2