feat(example/valgrind): Add a script to test the c example with valgrind
This commit is contained in:
parent
c2d21fd0a8
commit
eb3156753a
|
@ -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