changeset 21742:66f91859822b

test-run-tests.t: test selection of testfile from the command line
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 30 May 2014 12:11:39 -0700
parents 02cd29156d5d
children d72bea858cbd
files tests/test-run-tests.t
diffstat 1 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-run-tests.t	Fri May 30 12:11:17 2014 -0700
+++ b/tests/test-run-tests.t	Fri May 30 12:11:39 2014 -0700
@@ -61,3 +61,30 @@
   # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
   python hash seed: * (glob)
   [1]
+
+Selecting Tests To Run
+======================
+
+successful
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` test-success.t
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+
+failed
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` test-failure.t
+  
+  --- $TESTTMP/test-failure.t
+  +++ $TESTTMP/test-failure.t.err
+  @@ -1,2 +1,2 @@
+     $ echo babar
+  -  rataxes
+  +  babar
+  
+  ERROR: test-failure.t output changed
+  !
+  Failed test-failure.t: output changed
+  # Ran 1 tests, 0 skipped, 0 warned, 1 failed.
+  python hash seed: * (glob)
+  [1]