diff options
Diffstat (limited to 'fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh')
-rwxr-xr-x | fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh b/fluent-bit/lib/librdkafka-2.1.0/tests/autotest.sh new file mode 100755 index 00000000..9d17706f --- /dev/null +++ b/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 |