blob: 9d17706f38932195f7831240926e28affbdf2b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|