summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/librdkafka-2.1.0/tests/run-producer-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluent-bit/lib/librdkafka-2.1.0/tests/run-producer-tests.sh')
-rwxr-xr-xsrc/fluent-bit/lib/librdkafka-2.1.0/tests/run-producer-tests.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/librdkafka-2.1.0/tests/run-producer-tests.sh b/src/fluent-bit/lib/librdkafka-2.1.0/tests/run-producer-tests.sh
new file mode 100755
index 000000000..7f1035cbb
--- /dev/null
+++ b/src/fluent-bit/lib/librdkafka-2.1.0/tests/run-producer-tests.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+#
+# Run all tests that employ a producer.
+#
+
+set -e
+
+TESTS=$(for t in $(grep -l '[pp]roduce' 0*.{c,cpp}); do \
+ echo $t | sed -e 's/^\([0-9][0-9][0-9][0-9]\)-.*/\1/g' ; \
+ done)
+
+export TESTS
+echo "# Running producer tests: $TESTS"
+
+./run-test.sh $*