[PATCH 2 of 3 V4] test-run-tests.t: added test for '--time' option

Anurag Goel anurag.dsps at gmail.com
Sat Jun 21 11:21:46 CDT 2014


# HG changeset patch
# User anuraggoel <anurag.dsps at gmail.com>
# Date 1403365495 -19800
#      Sat Jun 21 21:14:55 2014 +0530
# Node ID ce69b3b23dbebf1b674f235036e97c78686aac63
# Parent  d7a0a8654dbb60ec0121975f82bb8d06369d8216
test-run-tests.t: added test for '--time' option

Below patch checks the behviour of '--time' option.

diff -r d7a0a8654dbb -r ce69b3b23dbe tests/test-run-tests.t
--- a/tests/test-run-tests.t	Sat Jun 21 21:06:56 2014 +0530
+++ b/tests/test-run-tests.t	Sat Jun 21 21:14:55 2014 +0530
@@ -19,6 +19,16 @@
   .
   # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
 
+test for --time
+==================
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` --time
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+  # Producing time report
+  cuser   csys    real      Test
+  [\d.\s]{23} test-success.t (re)
+
 failing test
 ==================
 


More information about the Mercurial-devel mailing list