]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
.cirrus.yml: statgrab: Print `ldd` of failing plugins. Continue on error.
authorFlorian Forster <octo@collectd.org>
Tue, 23 Jan 2024 09:12:48 +0000 (10:12 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 23 Jan 2024 09:12:48 +0000 (10:12 +0100)
.cirrus.yml

index 35e2de66adbd71bf2973167b3dff108d3126a9b6..d4b574e7700e97f5c23d919e20d72fd6e69756a1 100644 (file)
@@ -150,12 +150,15 @@ non_standard_toolchains_task:
         - make -j$(nproc) -sk
       tests_script:
         - >
-          for i in cpu disk interface load memory swap users; do
-            if ! $(ldd ".libs/${i}.so" 2>/dev/null | grep -q 'libstatgrab.so'); then
-              echo "plugin $i NOT linked against libstatgrab"
-              exit 1
+          err=0
+          for plugin in cpu disk interface load memory swap users; do
+            if ! $(ldd ".libs/${plugin}.so" 2>/dev/null | grep -q 'libstatgrab.so'); then
+              echo "plugin ${plugin} is NOT linked against libstatgrab:"
+              ldd ".libs/${plugin}.so" | sed -e 's/^/    /'
+              err=$(($err + 1))
             fi
           done
+          exit $err
 
     # build using clang with a collection of strict build flags, will most
     # probably always fail