Skip to content

Commit

Permalink
Disable valgrind for now, and start up kafka/zk before starting building
Browse files Browse the repository at this point in the history
  • Loading branch information
davidblewett committed Jan 11, 2024
1 parent 8f37c49 commit e347f9a
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,36 @@ run_with_valgrind() {
# Initialize.

git submodule update --init
cargo test --no-run
docker-compose up -d
cargo test

# Run unit tests.

echo_good "*** Run unit tests ***"
for test_file in target/debug/deps/rdkafka-*
do
if [[ -x "$test_file" ]]
then
echo_good "Executing "$test_file""
run_with_valgrind "$test_file"
fi
done
echo_good "*** Unit tests succeeded ***"

# Run integration tests.

echo_good "*** Run unit tests ***"
for test_file in target/debug/deps/test_*
do
if [[ -x "$test_file" ]]
then
echo_good "Executing "$test_file""
run_with_valgrind "$test_file"
fi
done
echo_good "*** Integration tests succeeded ***"
#echo_good "*** Run unit tests ***"
#for test_file in target/debug/deps/rdkafka-*
#do
# if [[ -x "$test_file" ]]
# then
# echo_good "Executing "$test_file""
# run_with_valgrind "$test_file"
# fi
#done
#echo_good "*** Unit tests succeeded ***"
#
## Run integration tests.
#
#echo_good "*** Run integration tests ***"
#for test_file in target/debug/deps/test_*
#do
# if [[ -x "$test_file" ]]
# then
# #echo_good "*** Restarting kafka/zk ***"
# #docker-compose restart --timeout 30
# echo_good "Executing "$test_file""
# run_with_valgrind "$test_file"
# fi
#done
#echo_good "*** Integration tests succeeded ***"

# Run smol runtime example.

Expand Down

0 comments on commit e347f9a

Please sign in to comment.