fdisk: comment out unused function
[oweals/busybox.git] / testsuite / all_sourcecode.tests
index 976f3088736f32ca48527601dfa24652c61a596e..a537dcee9a3d7fd5c87901ffd7ec0fce61b005e4 100755 (executable)
@@ -19,7 +19,7 @@
 # verify the applet order is correct in applets.h, otherwise
 # applets won't be called properly.
 #
-sed -n -e '/^USE_[A-Z]*(APPLET(/{s:.*(::;s:,.*::;s:"::g;p}' \
+sed -n -e '/^USE_[A-Z]*(APPLET/{s:,.*::;s:.*(::;s:"::g;p}' \
        $srcdir/../include/applets.h > applet.order.current
 LC_ALL=C sort applet.order.current > applet.order.correct
 testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""
@@ -36,10 +36,10 @@ find $srcdir/../ \
                -e '\<compatability\>' \
                -e '\<compatable\>' \
                -e '\<fordeground\>' \
-               -e '\<depency\>' \
+               -e '\<depency\>' -e '\<dependancy\>' -e '\<dependancies\>' \
                -e '\<defalt\>' \
                -e '\<remaing\>' \
-               -e '\<queuing\>' \
+               -e '\<queueing\>' \
                -e '\<detatch\>' \
                -e '\<sempahore\>' \
                -e '\<reprenstative\>' \
@@ -49,6 +49,7 @@ find $srcdir/../ \
                -e '\<algorithic\>' \
                -e '\<deamon\>' \
                -e '\<derefernce\>' \
+               -e '\<acomadate\>' \
                | sed -e "s:^$srcdir/\.\./::g" > src.typos
 testing "Common typos" "cat src.typos" "" "" ""
 rm -f src.typos
@@ -68,9 +69,9 @@ rm -f src.obsolete.funcs
 # don't allow obsolete headers
 #
 find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
-       grep -E -e '\<(malloc|memory)\.h\>' \
+       grep -E -e '\<(malloc|memory|sys/(errno|fcntl|signal|stropts|termios|unistd))\.h\>' \
        | sed -e "s:^$srcdir/\.\./::g" > src.obsolete.headers
-testing "Obsolete function usage" "cat src.obsolete.headers" "" "" ""
+testing "Obsolete headers" "cat src.obsolete.headers" "" "" ""
 rm -f src.obsolete.headers