svn commit: trunk/busybox/testsuite

vapier at busybox.net vapier at busybox.net
Fri Feb 15 01:42:28 UTC 2008


Author: vapier
Date: 2008-02-14 17:42:28 -0800 (Thu, 14 Feb 2008)
New Revision: 21024

Log:
add a test case for usage strings to catch people forgetting to add trailing escape in middle of usage

Modified:
   trunk/busybox/testsuite/all_sourcecode.tests


Changeset:
Modified: trunk/busybox/testsuite/all_sourcecode.tests
===================================================================
--- trunk/busybox/testsuite/all_sourcecode.tests	2008-02-15 01:34:14 UTC (rev 21023)
+++ trunk/busybox/testsuite/all_sourcecode.tests	2008-02-15 01:42:28 UTC (rev 21024)
@@ -16,6 +16,20 @@
 
 
 #
+# make sure all usage strings are properly escaped.  oftentimes people miss
+# an escape sequence so we end up with:
+# #define foo_usage \
+#       " this line is ok" \
+#       " as is this line"
+#       " but this one is broken as the \ is missing from above"
+#
+${CROSS_COMPILE}cpp -dD -P $srcdir/../include/usage.h \
+	| sed -e '/^#define/d' -e '/^$/d' > src.usage.escaped
+testing "Usage strings escaped" "cat src.usage.escaped" "" "" ""
+rm -f src.usage.escaped
+
+
+#
 # verify the applet order is correct in applets.h, otherwise
 # applets won't be called properly.
 #




More information about the busybox-cvs mailing list