1. 05 Jun, 2020 1 commit
  2. 04 Jun, 2020 1 commit
  3. 03 Jun, 2020 2 commits
  4. 02 Jun, 2020 1 commit
    • offer exact name matching with a `$` suffix · 0d3ce2ac
      When using `-s` to specify a particular test, it will do a prefix match.
      Thus, `-sapply::both::rename_a_to_b_to_c` will match both a test named
      `test_apply_both__rename_a_to_b_to_c` and a test that begins with that
      name, like `test_apply_both__rename_a_to_b_to_c_exact`.
      
      Permit a trailing `$` to `-s` syntax.  This allows a user to specify
      `-sapply::both::rename_a_to_b_to_c$` to match _only_ the
      `test_apply_both__rename_a_to_b_to_c` function.
      
      We already filter to ensure that the given prefix matches the current
      test name.  Also ensure that the length of the test name matches the
      length of the filter, sans trailing `$`.
      Edward Thomson committed
  5. 20 Jul, 2019 1 commit
    • clar: provide ability to set summary file via environment · fe3b5da3
      As different test suites for our CI are mostly defined via CMake, it's
      hard to run those tests with a summary file path as that'd require us to
      add another parameter to all unit tests. As we do not want to
      unconditionally run unit tests with a summary file, we would have to add
      another CMake build parameter for test execution, which is ugly.
      
      Instead, implement a way to provide a summary file path via the
      environment.
      Patrick Steinhardt committed
  6. 05 Jul, 2019 1 commit
    • clar: use `size_t` to keep track of current line number · 77d7e5eb
      We use the `__LINE__` macro in several places throughout clar to allow
      easier traceability when e.g. a test fails. While `__LINE__` is of type
      `size_t`, the clar functions all accept an integer and thus may loose
      precision. While unlikely that any file in our codebase will exceed a
      linecount of `INT_MAX`, let's convert it anyway to silence any compiler
      warnings.
      Patrick Steinhardt committed
  7. 24 Jun, 2019 1 commit
  8. 08 Sep, 2018 1 commit
  9. 06 Sep, 2018 5 commits
  10. 11 Nov, 2017 1 commit
    • clar: verify command line arguments before execute · 32758631
      When executing `libgit2_clar -smerge -invalid_option`, it will first execute
      the merge test suite and afterwards output help because of the invalid option.
      
      With this changa, it verifies all options before execute. If there are any
      invalid options, it will output help and exit without actually executing
      the test suites.
      Yoney committed
  11. 04 Aug, 2016 1 commit
    • clar: fix parsing of test suite prefixes · f2cab0a6
      When passing in a specific suite which should be executed by clar
      via `-stest::suite`, we try to parse this string and then include
      all tests contained in this suite. This also includes all tests
      in sub-suites, e.g. 'test::suite::foo'.
      
      In the case where multiple suites start with the same _string_,
      for example 'test::foo' and 'test::foobar', we fail to
      distinguish this correctly. When passing in `-stest::foobar`,
      we wrongly determine that 'test::foo' is a prefix and try to
      execute all of its matching functions. But as no function
      will now match 'test::foobar', we simply execute nothing.
      
      To fix this, we instead have to check if the prefix is an actual
      suite prefix as opposed to a simple string prefix. We do so by by
      inspecting if the first two characters trailing the prefix are
      our suite delimiters '::', and only consider the filter as
      matching in this case.
      Patrick Steinhardt committed
  12. 21 Jun, 2016 1 commit
  13. 17 Mar, 2015 1 commit
  14. 27 Feb, 2015 1 commit
  15. 05 Feb, 2015 1 commit
  16. 10 Dec, 2014 1 commit
  17. 02 Apr, 2014 1 commit
  18. 29 Mar, 2014 1 commit
  19. 28 Mar, 2014 1 commit
  20. 07 Mar, 2014 2 commits
  21. 14 Nov, 2013 1 commit
  22. 12 Sep, 2013 1 commit
  23. 04 Sep, 2013 1 commit
  24. 12 Aug, 2013 1 commit
  25. 17 Jun, 2013 1 commit
  26. 10 Jun, 2013 1 commit
    • Reorganize diff and add basic diff driver · 114f5a6c
      This is a significant reorganization of the diff code to break it
      into a set of more clearly distinct files and to document the new
      organization.  Hopefully this will make the diff code easier to
      understand and to extend.
      
      This adds a new `git_diff_driver` object that looks of diff driver
      information from the attributes and the config so that things like
      function content in diff headers can be provided.  The full driver
      spec is not implemented in the commit - this is focused on the
      reorganization of the code and putting the driver hooks in place.
      
      This also removes a few #includes from src/repository.h that were
      overbroad, but as a result required extra #includes in a variety
      of places since including src/repository.h no longer results in
      pulling in the whole world.
      Russell Belfer committed
  27. 22 Mar, 2013 1 commit
  28. 21 Jan, 2013 1 commit
  29. 03 Jan, 2013 1 commit