feat(example/valgrind): Add a script to test the c example with valgrind

This commit is contained in:
Benedikt Peetz 2024-03-24 21:13:46 +01:00
parent 648348bd38
commit 0ec81972eb
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
2 changed files with 13 additions and 0 deletions

12
example/main/valgrind_test.sh Executable file
View File

@ -0,0 +1,12 @@
#! /usr/bin/env sh
make
cargo build
valgrind --leak-check=full \
--show-leak-kinds=all \
--show-error-list=yes \
--track-origins=yes \
--log-file=./target/valgrind_out.txt \
./target/debug/main ./target/c_build/plugin.so
cat ./target/valgrind_out.txt

View File

@ -170,6 +170,7 @@
rust
cargo-edit
cargo-expand
valgrind
# Used to format the c header files
libclang