summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/jansson-e23f558/test/run-suites
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:20:02 +0000
commit58daab21cd043e1dc37024a7f99b396788372918 (patch)
tree96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /fluent-bit/lib/jansson-e23f558/test/run-suites
parentReleasing debian version 1.43.2-1. (diff)
downloadnetdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz
netdata-58daab21cd043e1dc37024a7f99b396788372918.zip
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/jansson-e23f558/test/run-suites')
-rwxr-xr-xfluent-bit/lib/jansson-e23f558/test/run-suites50
1 files changed, 50 insertions, 0 deletions
diff --git a/fluent-bit/lib/jansson-e23f558/test/run-suites b/fluent-bit/lib/jansson-e23f558/test/run-suites
new file mode 100755
index 000000000..fd1b89b5a
--- /dev/null
+++ b/fluent-bit/lib/jansson-e23f558/test/run-suites
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+while [ -n "$1" ]; do
+ suite=$1
+ if [ -x $top_srcdir/test/suites/$suite/run ]; then
+ SUITES="$SUITES $suite"
+ else
+ echo "No such suite: $suite"
+ exit 1
+ fi
+ shift
+done
+
+if [ -z "$SUITES" ]; then
+ suitedirs=$top_srcdir/test/suites/*
+ for suitedir in $suitedirs; do
+ if [ -d $suitedir ]; then
+ SUITES="$SUITES `basename $suitedir`"
+ fi
+ done
+fi
+
+[ -z "$STOP" ] && STOP=0
+
+suites_srcdir=$top_srcdir/test/suites
+suites_builddir=suites
+scriptdir=$top_srcdir/test/scripts
+logdir=logs
+bindir=bin
+export suites_srcdir suites_builddir scriptdir logdir bindir
+
+passed=0
+failed=0
+for suite in $SUITES; do
+ echo "Suite: $suite"
+ if $suites_srcdir/$suite/run $suite; then
+ passed=`expr $passed + 1`
+ else
+ failed=`expr $failed + 1`
+ [ $STOP -eq 1 ] && break
+ fi
+done
+
+if [ $failed -gt 0 ]; then
+ echo "$failed of `expr $passed + $failed` test suites failed"
+ exit 1
+else
+ echo "$passed test suites passed"
+ rm -rf $logdir
+fi