tests/clar.c


Log

Author Commit Date CI Message
Yoney 32758631 2017-11-11T15:38:27 clar: verify command line arguments before execute 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.
Patrick Steinhardt f2cab0a6 2016-08-04T11:49:39 clar: fix parsing of test suite prefixes 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 8fd74c08 2016-02-09T12:18:28 Avoid old-style function definitions 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.
Edward Thomson 08c29c44 2015-03-17T19:04:48 clar: update to 08f434d
Edward Thomson cfcb346d 2015-02-27T00:30:50 Update to clar 2b73f5e
Edward Thomson 83276dcc 2015-02-05T13:24:38 Update clar to d17c7f6
Edward Thomson 09debe12 2014-12-01T13:06:11 clar: wide character comparisons
Vicent Marti 0f65733b 2014-04-02T18:50:47 Clar: skip tests
Edward Thomson ed38bff1 2014-03-28T17:54:43 Update clar to 4b75388
Edward Thomson 10be94e9 2014-03-28T10:09:13 Update clar to 587f88a
Edward Thomson dd954a37 2014-03-07T10:53:00 Update clar to e1990d6
Edward Thomson 806571f3 2014-03-07T00:28:18 Update clar to a0b00f0
Ben Straub 17820381 2013-11-14T14:05:52 Rename tests-clar to tests