Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/all_sourcecode.tests

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 5  Line 5 
5  # Licensed under GPL v2, see file LICENSE for details.  # Licensed under GPL v2, see file LICENSE for details.
6    
7  [ -n "$srcdir" ] || srcdir=$(pwd)  [ -n "$srcdir" ] || srcdir=$(pwd)
8  . testing.sh  . ./testing.sh
9    
10    
11  #  #
# Line 33  rm -f src.usage.escaped Line 33  rm -f src.usage.escaped
33  # verify the applet order is correct in applets.h, otherwise  # verify the applet order is correct in applets.h, otherwise
34  # applets won't be called properly.  # applets won't be called properly.
35  #  #
36  sed -n -e '/^USE_[A-Z]*(APPLET/{s:,.*::;s:.*(::;s:"::g;p}' \  sed -n -e 's:^//::' -e '/^IF_[A-Z]*(APPLET/{s:,.*::;s:.*(::;s:"::g;p}' \
37   $srcdir/../include/applets.h > applet.order.current   $srcdir/../include/applets.h > applet.order.current
38  LC_ALL=C sort applet.order.current > applet.order.correct  LC_ALL=C sort applet.order.current > applet.order.correct
39  testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""  testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""
# Line 73  rm -f src.typos Line 73  rm -f src.typos
73  # don't allow obsolete functions  # don't allow obsolete functions
74  #  #
75  find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \  find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
76   grep -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utimes|sigblock|siggetmask|sigsetmask)\>[[:space:]]*\(' \   grep -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utime|sigblock|siggetmask|sigsetmask)\>[[:space:]]*\(' \
77   | sed -e "s:^$srcdir/\.\./::g" > src.obsolete.funcs   | sed -e "s:^$srcdir/\.\./::g" > src.obsolete.funcs
78  testing "Obsolete function usage" "cat src.obsolete.funcs" "" "" ""  testing "Obsolete function usage" "cat src.obsolete.funcs" "" "" ""
79  rm -f src.obsolete.funcs  rm -f src.obsolete.funcs

Legend:
Removed from v.983  
changed lines
  Added in v.984