Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/testsuite/all_sourcecode.tests
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/testsuite/all_sourcecode.tests
r1765 r2725 3 3 # Tests for the sourcecode base itself. 4 4 # Copyright 2006 by Mike Frysinger <vapier@gentoo.org> 5 # Licensed under GPL v2, see file LICENSE for details.5 # Licensed under GPLv2, see file LICENSE in this source tree. 6 6 7 7 [ -n "$srcdir" ] || srcdir=$(pwd) 8 . testing.sh8 . ./testing.sh 9 9 10 10 … … 17 17 18 18 # 19 # make sure all usage strings are properly escaped. oftentimes people miss 20 # an escape sequence so we end up with: 21 # #define foo_usage \ 22 # " this line is ok" \ 23 # " as is this line" 24 # " but this one is broken as the \ is missing from above" 25 # 26 ${CROSS_COMPILE}cpp -dD -P $srcdir/../include/usage.h \ 27 | sed -e '/^#define/d' -e '/^$/d' > src.usage.escaped 28 testing "Usage strings escaped" "cat src.usage.escaped" "" "" "" 29 rm -f src.usage.escaped 30 31 32 # 19 33 # verify the applet order is correct in applets.h, otherwise 20 34 # applets won't be called properly. 21 35 # 22 sed -n -e ' /^USE_[A-Z]*(APPLET/{s:,.*::;s:.*(::;s:"::g;p}' \36 sed -n -e 's:^//::' -e '/^IF_[A-Z]*(APPLET/{s:,.*::;s:.*(::;s:"::g;p}' \ 23 37 $srcdir/../include/applets.h > applet.order.current 24 38 LC_ALL=C sort applet.order.current > applet.order.correct … … 60 74 # 61 75 find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \ 62 grep -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utime s)\>[[:space:]]*\(' \76 grep -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utime|sigblock|siggetmask|sigsetmask)\>[[:space:]]*\(' \ 63 77 | sed -e "s:^$srcdir/\.\./::g" > src.obsolete.funcs 64 78 testing "Obsolete function usage" "cat src.obsolete.funcs" "" "" ""
Note:
See TracChangeset
for help on using the changeset viewer.