tests: rename ``test-run-tests.t`` to ``test-unified-test.t``

This ``test-run-tests.y`` is testing the unified test (.t) syntax
interpretation, not really the run-tests.py command tool itself.

--HG--
rename : tests/test-run-tests.t => tests/test-unified-test.t
extra : rebase_source : f7a02bebb7c73a35c3bb62bfc68778be82df0e38
tests: comment the main purpose of ``test-unified-test.t``

--HG--
extra : rebase_source : 6ca5acc5be466c2e0819592cf61b7707756b78a4
extra : amend_source : 605374439b49d04dc2072f970101383d8b3bf58a
test: introduce test-run-tests.t

This testfile tests the test runner itself. There were multiple regressions in the
last few weeks. Having tests would prevent this in the future.

--HG--
extra : rebase_source : 117ea8989091986b7f7b8c4cb53b51d3eeff4807
extra : amend_source : b7b1f3e84abacb0bcb4dfb11b47f404f1d716ee1
run-tests: don't check for the mercurial library used when using --with-hg

In the ``--with-hg`` case, we cannot properly infer the location of the mercurial
library, so we skip the warning completely.

--HG--
extra : rebase_source : 042e65e368bfffafb5fa958c7e2a7cca0fbb2bba
extra : amend_source : c12cc4d0070fe04ea6ca0b4c53ab44f34f31bd8d
test-run-tests.t: test running a passing test

--HG--
extra : rebase_source : bbab7ffd91169601f1b3216d4915e26a1fbb2297
run-tests: produce error on running a failing test

This patch fixes a regression recently introduced by a refactoring (see
92a6b16c9186 and about 200 previous changesets from Gregory Szorc).  It produce
an error message everytime with a test filename which gets fail while testing
except at one condition when '--nodiff' option is enabled.

--HG--
extra : rebase_source : 723d73f590ab0514a53936888aff26bf752dc4a8
run-tests: produce '!' mark after running a failing test

This patch  fixes a regression recently introduced by a refactoring (see
92a6b16c9186 and about 200 previous changesets from Gregory Szorc).  '!' mark
denotes that the test gets failed while testing.

--HG--
extra : rebase_source : d046a6e082c7e44b0b10befdc28e13beae768b8a
run-tests: filter whitespace at end of error diffs

Python 2.6 and 2.7 produce slightly different diff headers.
test-run-tests.t: test running a failing test

--HG--
extra : rebase_source : 327c2985d908178144b38882d4ffef82698cef80
run-tests: skipped test should not produce 'i' mark while retesting

When '--retest' option is enabled then skipped test should not produce 'i' mark.
This fixes a regression introduced by 92a6b16c9186 and about 200 previous
changesets from Gregory Szorc.

--HG--
extra : rebase_source : 5ba82022549c443fe9193e2ed7e70838044fca8e
run-tests: fixes the number of tests ran when '--retest' is enabled

This patch fixes a regression recently introduced by a refactoring. (see
92a6b16c9186 and about 200 previous changesets from Gregory Szorc)

While retesting, that is when '--retest' is enabled, only failure tests run
and others either skipped or ignored.

During retesting, "result.testsRun" holds the count of failure test that has
run. But as while printing output, we have subtracted the skipped and ignored
count from "result.testsRun". Therefore, to make the count remain
the same, we need to add skipped and ignored count before printing.

--HG--
extra : rebase_source : ced498c670215d207354e0a8ccf3a7737a53cee0
test-run-tests.t: tests the --retest option

--HG--
extra : rebase_source : bf4dbc49b54cb2c052e88e579ce29934c73f2d9f
test-run-tests.t: test selection of testfile from the command line

--HG--
extra : rebase_source : febf612e44da605e45675a85fd9753312a6d0aa7
test-run-tests.t: test --debug option

--HG--
extra : rebase_source : a39419ec73ff78380218524a68808bf024c81439
test-run-tests.t: tests --jobs option

--HG--
extra : rebase_source : 2b1f721720fb53c2d164900d9a466d95186eaea3
parsers.c: fix a couple of memory leaks

--HG--
branch : stable
extra : rebase_source : 3e949541326e4d075704931c56d49327f3b13a06
tests: cat error messages are different on Solaris

--HG--
branch : stable
extra : rebase_source : edcab63f49fa40dd65bfb04dd83cba5662fc8100
extra : amend_source : 89583fd9cbc7748e32b05fbcf4d2ba5bb21968b3
minirst: explicitly decode substitutions

Caught by Augie and sys.setdefaultencoding("undefined")

--HG--
extra : rebase_source : 8d95420cd34514b9b73b3764041164f2c0fee289
i18n: explicitly decode paragraphs

This was triggering an exception when the default encoding was disabled.

--HG--
extra : rebase_source : e30c16cb62344a04d27276a648f7b50939bac24e
extra : amend_source : f8b1cd768639180d43b13ae04fb75e0893845703
error: restore python 2.4 compatibility for BundleValueError

Under python 2.4, this:
    super(BundleValueError, self).__init__(msg)
raises this:
    TypeError: super() argument 1 must be type, not classobj

--HG--
extra : rebase_source : 7651d716638958d3b4e22320edf930ce9eff36ad