diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 01:42:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 01:42:28 +0000 |
commit | 25cd7fd702f6439e0fddce162bd197ff77944ebf (patch) | |
tree | f61ed8d2f431b7f6880e9896b6dce30c9eadaede | |
parent | 1e47c429bf6283d441dcebb16a48ae11bff211d2 (diff) | |
download | busybox-w32-25cd7fd702f6439e0fddce162bd197ff77944ebf.tar.gz busybox-w32-25cd7fd702f6439e0fddce162bd197ff77944ebf.tar.bz2 busybox-w32-25cd7fd702f6439e0fddce162bd197ff77944ebf.zip |
add a test case for usage strings to catch people forgetting to add trailing escape in middle of usage
-rwxr-xr-x | testsuite/all_sourcecode.tests | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests index a537dcee9..86f61b7c3 100755 --- a/testsuite/all_sourcecode.tests +++ b/testsuite/all_sourcecode.tests | |||
@@ -16,6 +16,20 @@ | |||
16 | 16 | ||
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 | # verify the applet order is correct in applets.h, otherwise | 33 | # verify the applet order is correct in applets.h, otherwise |
20 | # applets won't be called properly. | 34 | # applets won't be called properly. |
21 | # | 35 | # |