mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
Add valgrind tests and fix memleaks
This commit is contained in:
@@ -1,12 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $# in
|
||||
0)
|
||||
source_dir="."
|
||||
;;
|
||||
1)
|
||||
source_dir=$1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [source_dir]"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
ret=0
|
||||
find .. -name "*.c" -o -name "*.h" | while read f; do
|
||||
find "$source_dir" -name "*.c" -o -name "*.h" | while read f; do
|
||||
case $f in
|
||||
../*/CMakeFiles/*)
|
||||
${source_dir}/*/CMakeFiles/*)
|
||||
;;
|
||||
${source_dir}/CMakeFiles/*)
|
||||
;;
|
||||
*)
|
||||
INDENT_PROFILE=../.indent.pro indent -st $f | diff -u $f -
|
||||
INDENT_PROFILE="${source_dir}/.indent.pro" indent -st "$f" | diff -u "$f" -
|
||||
ret=$((ret+$?))
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user