fixed memory leaks, added cleanup code, added valgrind scripts to test binaries
This commit is contained in:
21
vg_storage.sh
Executable file
21
vg_storage.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
export AQHOME_LOGLEVEL=info
|
||||
export LD_LIBRARY_PATH="0-build/aqhome/:$LD_LIBRARY_PATH"
|
||||
|
||||
# valgrind --tool=memcheck --trace-children=yes -v --log-file=aqf15 --leak-check=full --show-reachable=yes --track-origins=yes --num-callers=50 --keep-stacktraces=alloc-and-free --suppressions=../../../../debug/valgrind.supp /usr/local/bin/aqfinance
|
||||
|
||||
# valgrind --tool=memcheck --trace-children=yes -v --log-file=aqhomed.vg --leak-check=full --show-reachable=yes --track-origins=yes --num-callers=50 --keep-stacktraces=alloc-and-free 0-build/apps/aqhomed/aqhomed -l aqhome.log -db aqhome.db -ma 192.168.117.192 -mp 1883 -t 127.0.0.1 -T 300
|
||||
|
||||
valgrind \
|
||||
--tool=memcheck --trace-children=yes -v --log-file=aqhome-storage.vg --leak-check=full --show-reachable=yes \
|
||||
--track-origins=yes --num-callers=50 --keep-stacktraces=alloc-and-free \
|
||||
0-build/apps/aqhome-storage/aqhome-storage \
|
||||
--sourcefolder=apps/aqhome-storage/test/html \
|
||||
-D apps/aqhome-storage/test/config \
|
||||
--statefile=apps/aqhome-storage/test/config/state \
|
||||
-ma 192.168.117.192 -mp 1883 --mqttclientid=AQHOMESTORAGEVG \
|
||||
-ha 127.0.0.1 -hp 1884 \
|
||||
-p ./aqhome-storage.pid \
|
||||
-T 90
|
||||
|
||||
Reference in New Issue
Block a user