summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/librdkafka-2.1.0/tests/cleanup-checker-tests.sh
blob: f396d8bed14e4ce61841b167a00c88fb4c5cb37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
#
# This script runs all tests with valgrind, one by one, forever, to
# make sure there aren't any memory leaks.

ALL=$(seq 0 15)
CNT=0
while true ; do
    for T in $ALL; do
	echo "#################### Test $T run #$CNT #################"
	TESTS=$(printf %04d $T)	./run-test.sh -p valgrind || exit 1
	CNT=$(expr $CNT + 1)
    done
    echo "################## Cleaning up"
    rm -f *.offset
    ./delete-test-topics.sh 0
done
done