summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/runtests.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/runtests.sh b/src/test/runtests.sh
index 8a8c467..f913820 100755
--- a/src/test/runtests.sh
+++ b/src/test/runtests.sh
@@ -74,6 +74,14 @@ out=$(cd ${top_srcdir}; find */ \
[ -z "${out}" ]
eend $? "Trailing whitespace needs to be deleted:"$'\n'"${out}"
+ebegin "Checking trailing newlines in code"
+out=$(cd ${top_srcdir};
+ for f in `find */ -name '*.[ch]'` ; do
+ sed -n -e :a -e '/^\n*$/{$q1;N;ba' -e '}' $f || echo $f
+ done)
+[ -z "${out}" ]
+eend $? "Trailing newlines need to be deleted:"$'\n'"${out}"
+
ebegin "Checking for obsolete functions"
out=$(cd ${top_srcdir}; find src -name '*.[ch]' \
-exec grep -n -E '\<(malloc|memory|sys/(errno|fcntl|signal|stropts|termios|unistd))\.h\>' {} +)