svn commit: trunk/busybox/testsuite

vda at busybox.net vda at busybox.net
Fri May 2 09:19:29 UTC 2008


Author: vda
Date: 2008-05-02 02:19:29 -0700 (Fri, 02 May 2008)
New Revision: 21917

Log:
runtest: the saga continues :(



Modified:
   trunk/busybox/testsuite/runtest


Changeset:
Modified: trunk/busybox/testsuite/runtest
===================================================================
--- trunk/busybox/testsuite/runtest	2008-05-02 07:18:29 UTC (rev 21916)
+++ trunk/busybox/testsuite/runtest	2008-05-02 09:19:29 UTC (rev 21917)
@@ -62,18 +62,12 @@
 	for testcase in "$tsdir/$applet"/*; do
 		# switch on basename of $testcase
 		case "${testcase##*/}" in
-			\#*)
-				continue
-				;;
-			*\~)
-				continue
-				;;
-			"CVS")
-				continue
-				;;
-			.*)
-				continue
-				;;
+			.*)     continue ;;    # .svn, .git etc
+			*~)     continue ;;    # backup files
+			"CVS")  continue ;;
+			\#*)    continue ;;    # CVS merge residues
+			*.mine) continue ;;    # svn-produced junk
+			*.r[0-9]*) continue ;; # svn-produced junk
 		esac
 		run_applet_testcase "$applet" "$testcase"
 		test $? -eq 0 || status=1
@@ -122,22 +116,13 @@
 done
 
 # Set up option flags so tests can be selective.
-export OPTIONFLAGS=:$(sed -nr 's/^CONFIG_//p' "$bindir/.config" | sed 's/=.*//' | xargs | sed 's/ /:/g')
+export OPTIONFLAGS=:$(
+	sed -nr 's/^CONFIG_//p' "$bindir/.config" |
+	sed 's/=.*//' | xargs | sed 's/ /:/g'
+	)
 
 status=0
 for applet in $applets; do
-	case "$applet" in
-		"links")
-			continue
-			;;
-		"CVS")
-			continue
-			;;
-		.*)
-			continue
-			;;
-	esac
-
 	# Any old-style tests for this applet?
 	if [ -d "$tsdir/$applet" ]; then
 		run_oldstyle_applet_tests "$applet"
@@ -162,7 +147,7 @@
 # Leaving the dir makes it somewhat easier to run failed test by hand
 #rm -rf "$LINKSDIR"
 
-if [ $status -ne 0 -a x"$VERBOSE" = x ]; then
+if [ $status -ne 0 ] && [ x"$VERBOSE" = x ]; then
 	echo "Failures detected, running with -v (verbose) will give more info"
 fi
 exit $status




More information about the busybox-cvs mailing list