summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh')
-rwxr-xr-xsrc/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh b/src/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh
new file mode 100755
index 000000000..9d17706f3
--- /dev/null
+++ b/src/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# autotest.sh runs the integration tests using a temporary Kafka cluster.
+# This is intended to be used on CI.
+#
+
+set -e
+
+KAFKA_VERSION=$1
+
+if [[ -z $KAFKA_VERSION ]]; then
+ echo "Usage: $0 <broker-version>"
+ exit 1
+fi
+
+set -x
+
+pushd tests
+
+[[ -d _venv ]] || virtualenv _venv
+source _venv/bin/activate
+
+# Install the requirements
+pip3 install -U -r requirements.txt
+
+# Run tests that automatically spin up their clusters
+export KAFKA_VERSION
+
+echo "## Running full test suite for broker version $KAFKA_VERSION ##"
+time make full
+
+
+popd # tests