feat(example/valgrind): Add a script to test the c example with valgrind
This commit is contained in:
parent
648348bd38
commit
0ec81972eb
|
@ -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
|
Reference in New Issue