Skip to content
Snippets Groups Projects
  1. May 03, 2021
  2. Jan 26, 2019
  3. Sep 04, 2018
  4. Apr 04, 2018
  5. Jul 12, 2017
  6. Aug 06, 2014
  7. Apr 13, 2014
  8. Nov 15, 2013
  9. Jun 10, 2012
    • kiilerix's avatar
      tests: add missing trailing 'cd ..' · f2719b38
      kiilerix authored
      Many tests didn't change back from subdirectories at the end of the tests ...
      and they don't have to. The missing 'cd ..' could always be added when another
      test case is added to the test file.
      
      This change do that tests (99.5%) consistently end up in $TESTDIR where they
      started, thus making it simpler to extend them or move them around.
      f2719b38
  10. Nov 07, 2011
  11. Oct 09, 2010
  12. Sep 22, 2010
    • Brodie Rao's avatar
      tests: add glob matching for unified tests · 97ffc68f
      Brodie Rao authored
      This adds a " (glob)" marker that works like a simpler version of
      (re): "*" is converted to ".*", and "?" is converted to ".".
      
      Both special characters can be escaped using "\", and the backslash
      itself can be escaped as well.
      
      Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't
      supported.
      97ffc68f
    • Brodie Rao's avatar
      tests: require regexes in unified tests to be marked with " (re)" · 02990e22
      Brodie Rao authored
      Consider this test:
      
        $ hg glog --template '{rev}:{node|short} "{desc}"\n'
        @  2:20c4f79fd7ac "3"
        |
        | o  1:38f24201dcab "2"
        |/
        o  0:2a18120dc1c9 "1"
      
      Because each line beginning with "|" can be compiled as a regular
      expression (equivalent to ".*|"), they will match any output.
      
      Similarly:
      
        $ echo foo
      
      
      The blank output line can be compiled as a regular expression and will
      also match any output.
      
      With this patch, none of the above output lines will be matched as
      regular expressions. A line must end in " (re)" in order to be matched
      as one.
      
      Lines are still matched literally first, so the following will pass:
      
        $ echo 'foo (re)'
        foo (re)
      02990e22
  13. Sep 21, 2010
  14. Sep 14, 2010
  15. Sep 02, 2010
    • Martin Geisler's avatar
      tests: remove unneeded -d flags · 4c94b6d0
      Martin Geisler authored
      Many tests fixed the commit date of their changesets at '1000000 0' or
      similar. However testing with "Mon Jan 12 13:46:40 1970 +0000" is not
      better than testing with "Thu Jan 01 00:00:00 1970 +0000", which is
      the default run-tests.py installs.
      
      Removing the unnecessary flag removes some clutter and will hopefully
      make it clearer what the tests are really trying to test. Some tests
      did not even change their output when the dates were changed, in which
      case the -d flag was truly irrelevant.
      
      Dates used in sequence (such as '0 0', '1 0', etc...) were left alone
      since they may make the test easier to understand.
      4c94b6d0
  16. Jul 22, 2010
  17. Oct 18, 2008
  18. Oct 15, 2008
  19. Nov 09, 2007
  20. Aug 23, 2007
  21. Dec 01, 2006
  22. May 08, 2006
  23. Mar 13, 2006
  24. Nov 03, 2005
Loading