- 05 Jun, 2020 1 commit
-
-
Edward Thomson committed
-
- 04 Jun, 2020 1 commit
-
-
Edward Thomson committed
-
- 03 Jun, 2020 2 commits
-
-
Add an output abstraction layer, with a single output format, "clap", the clar protocol, which is the current output format for clar.
Edward Thomson committed -
We want to parse arguments before we start printing any output; the arguments themselves may impact the way we display that output.
Edward Thomson committed
-
- 02 Jun, 2020 1 commit
-
-
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
-
- 20 Jul, 2019 1 commit
-
-
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
-
- 05 Jul, 2019 1 commit
-
-
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
-
- 24 Jun, 2019 1 commit
-
-
Edward Thomson committed
-
- 08 Sep, 2018 1 commit
-
-
Instead of trying to have a clever iterator pattern that increments the error number, just iterate over errors in the report errors or report all functions as it's easier to reason about in this fashion.
Edward Thomson committed
-
- 06 Sep, 2018 5 commits
-
-
Remove the global summary filename and file pointer; pass them in to the summary functions as needed. Error check the results of buffered I/O calls.
Edward Thomson committed -
Accept an (optional) value for the summary filename. Continues to default to summary.xml.
Edward Thomson committed -
Etienne Samson committed
-
This makes it possible to keep track of every test status (even successful ones), and their errors, if any.
Etienne Samson committed -
Previously, supplying `-s` to explicitly enable some test(s) would run the tests immediately from the argument parser. This forces us to set up the entire clar environment (for example: sandboxing) before argument parsing takes place. Refactor the behavior of `-s` to add the explicitly chosen tests to a list that is executed later. This untangles the argument parsing from the setup lifecycle, allowing us to use the arguments to perform the setup.
Edward Thomson committed
-
- 11 Nov, 2017 1 commit
-
-
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
-
- 04 Aug, 2016 1 commit
-
-
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
-
- 21 Jun, 2016 1 commit
-
-
Avoid declaring old-style functions without any parameters. Functions not accepting any parameters should be declared with `void fn(void)`. See ISO C89 $3.5.4.3.
Patrick Steinhardt committed
-
- 17 Mar, 2015 1 commit
-
-
Edward Thomson committed
-
- 27 Feb, 2015 1 commit
-
-
Edward Thomson committed
-
- 05 Feb, 2015 1 commit
-
-
Edward Thomson committed
-
- 10 Dec, 2014 1 commit
-
-
Edward Thomson committed
-
- 02 Apr, 2014 1 commit
-
-
Vicent Marti committed
-
- 29 Mar, 2014 1 commit
-
-
Edward Thomson committed
-
- 28 Mar, 2014 1 commit
-
-
Edward Thomson committed
-
- 07 Mar, 2014 2 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
- 14 Nov, 2013 1 commit
-
-
Ben Straub committed
-
- 12 Sep, 2013 1 commit
-
-
nulltoken committed
-
- 04 Sep, 2013 1 commit
-
-
Russell Belfer committed
-
- 12 Aug, 2013 1 commit
-
-
Ben Straub committed
-
- 17 Jun, 2013 1 commit
-
-
Russell Belfer committed
-
- 10 Jun, 2013 1 commit
-
-
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
-
- 22 Mar, 2013 1 commit
-
-
Russell Belfer committed
-
- 21 Jan, 2013 1 commit
-
-
Russell Belfer committed
-
- 03 Jan, 2013 1 commit
-
-
Vicent Marti committed
-