Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 2010 09:30:50 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201421 - head/tools/regression/bin/date
Message-ID:  <201001030930.o039Uors040991@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: obrien
Date: Sun Jan  3 09:30:50 2010
New Revision: 201421
URL: http://svn.freebsd.org/changeset/base/201421

Log:
  Allow to be driven by 'prove -r'.

Modified:
  head/tools/regression/bin/date/regress.sh

Modified: head/tools/regression/bin/date/regress.sh
==============================================================================
--- head/tools/regression/bin/date/regress.sh	Sun Jan  3 08:44:18 2010	(r201420)
+++ head/tools/regression/bin/date/regress.sh	Sun Jan  3 09:30:50 2010	(r201421)
@@ -29,25 +29,29 @@ check()
 	A1=$2
 	A2=$3
 
-	count=`expr ${count} + 1`
-
 	if [ -z "${A2}" ]; then A2=${A1}; fi
 
+	count=`expr ${count} + 1`
+
 	R=`date -r ${TEST1} +%${S}`
 	if [ "${R}" = "${A1}" ]; then
-		echo "${count}a. ${S} - ok"
+		echo "ok ${count} - ${S}(a)"
 	else
-		echo "${count}a. ${S} - not ok (got ${R}, expected ${A1})"
+		echo "no ok ${count} - ${S}(a) (got ${R}, expected ${A1})"
 	fi
 
+	count=`expr ${count} + 1`
+
 	R=`date -r ${TEST2} +%${S}`
 	if [ "${R}" = "${A2}" ]; then
-		echo "${count}b. ${S} - ok"
+		echo "ok ${count} - ${S}(b)"
 	else
-		echo "${count}b. ${S} - not ok (got ${R}, expected ${A2})"
+		echo "no ok ${count} - ${S}(b) (got ${R}, expected ${A2})"
 	fi
 }
 
+echo "1..78"
+
 check A Saturday Monday
 check a Sat Mon
 check B February November



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001030930.o039Uors040991>