Skip to content

Commit

Permalink
Run tests natively, outside of valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
davidblewett committed Jan 11, 2024
1 parent 7dc8ae5 commit 6e305d7
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,35 @@ run_with_valgrind() {
git submodule update --init
docker-compose up --always-recreate-deps --force-recreate --renew-anon-volumes --detach
docker-compose logs -f &
cargo test --no-run
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 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 ***"
#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 6e305d7

Please sign in to comment.