summaryrefslogtreecommitdiff
path: root/tests/clar.c
Commit message (Collapse)AuthorAgeFilesLines
* clar: iterate errors in report_all / report_errorsEdward Thomson2018-09-081-19/+15
| | | | | | 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.
* clar: remove globals; error-check fprintf/fcloseEdward Thomson2018-09-061-16/+26
| | | | | | 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.
* clar: accept a value for the summary filenameEdward Thomson2018-09-061-3/+13
| | | | | Accept an (optional) value for the summary filename. Continues to default to summary.xml.
* Barebones JUnit XML outputEtienne Samson2018-09-061-1/+13
|
* Isolate test reportsEtienne Samson2018-09-061-31/+75
| | | | | This makes it possible to keep track of every test status (even successful ones), and their errors, if any.
* clar: refactor explicitly run test behaviorEdward Thomson2018-09-061-11/+44
| | | | | | | | | | | | 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.
* clar: verify command line arguments before executeYoney2017-11-111-2/+9
| | | | | | | | | 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.
* clar: fix parsing of test suite prefixesPatrick Steinhardt2016-08-041-0/+6
| | | | | | | | | | | | | | | | | | | | 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.
* Avoid old-style function definitionsPatrick Steinhardt2016-06-211-2/+2
| | | | | | 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.
* clar: update to 08f434dEdward Thomson2015-03-171-1/+1
|
* Update to clar 2b73f5eEdward Thomson2015-02-271-0/+33
|
* Update clar to d17c7f6Edward Thomson2015-02-051-0/+5
|
* clar: wide character comparisonsEdward Thomson2014-12-101-0/+36
|
* Clar: skip testsvmg/clar-skip-testVicent Marti2014-04-021-23/+30
|
* Update clar to 4b75388Edward Thomson2014-03-281-2/+8
|
* Update clar to 587f88aEdward Thomson2014-03-281-3/+24
|
* Update clar to e1990d6Edward Thomson2014-03-071-2/+2
|
* Update clar to a0b00f0Edward Thomson2014-03-071-0/+23
|
* Rename tests-clar to testsBen Straub2013-11-141-0/+511