On 2024.08.06 16:14, Patrick Steinhardt wrote: > Import the clar unit testing framework at commit faa8419 (Merge pull > request #93 from clar-test/ethomson/fixtures, 2023-12-14). The framework > will be wired up in subsequent commits. > > Signed-off-by: Patrick Steinhardt <ps@xxxxxx> > --- > Documentation/technical/unit-tests.txt | 2 + > Makefile | 4 +- > t/unit-tests/clar/.github/workflows/ci.yml | 23 + > t/unit-tests/clar/COPYING | 15 + > t/unit-tests/clar/README.md | 329 ++++++++ > t/unit-tests/clar/clar.c | 842 +++++++++++++++++++++ > t/unit-tests/clar/clar.h | 173 +++++ > t/unit-tests/clar/clar/fixtures.h | 50 ++ > t/unit-tests/clar/clar/fs.h | 522 +++++++++++++ > t/unit-tests/clar/clar/print.h | 211 ++++++ > t/unit-tests/clar/clar/sandbox.h | 154 ++++ > t/unit-tests/clar/clar/summary.h | 143 ++++ > t/unit-tests/clar/generate.py | 267 +++++++ > t/unit-tests/clar/test/.gitignore | 5 + > t/unit-tests/clar/test/Makefile | 39 + > t/unit-tests/clar/test/clar_test.h | 16 + > t/unit-tests/clar/test/main.c | 40 + > t/unit-tests/clar/test/main.c.sample | 27 + > t/unit-tests/clar/test/resources/test/file | 1 + > t/unit-tests/clar/test/sample.c | 84 ++ > 20 files changed, 2946 insertions(+), 1 deletion(-) > create mode 100644 t/unit-tests/clar/.github/workflows/ci.yml > create mode 100644 t/unit-tests/clar/COPYING > create mode 100644 t/unit-tests/clar/README.md > create mode 100644 t/unit-tests/clar/clar.c > create mode 100644 t/unit-tests/clar/clar.h > create mode 100644 t/unit-tests/clar/clar/fixtures.h > create mode 100644 t/unit-tests/clar/clar/fs.h > create mode 100644 t/unit-tests/clar/clar/print.h > create mode 100644 t/unit-tests/clar/clar/sandbox.h > create mode 100644 t/unit-tests/clar/clar/summary.h > create mode 100755 t/unit-tests/clar/generate.py > create mode 100644 t/unit-tests/clar/test/.gitignore > create mode 100644 t/unit-tests/clar/test/Makefile > create mode 100644 t/unit-tests/clar/test/clar_test.h > create mode 100644 t/unit-tests/clar/test/main.c > create mode 100644 t/unit-tests/clar/test/main.c.sample > create mode 100644 t/unit-tests/clar/test/resources/test/file > create mode 100644 t/unit-tests/clar/test/sample.c > > diff --git a/Documentation/technical/unit-tests.txt b/Documentation/technical/unit-tests.txt > index 206037ffb1..fc201d4b3d 100644 > --- a/Documentation/technical/unit-tests.txt > +++ b/Documentation/technical/unit-tests.txt > @@ -203,6 +203,7 @@ GitHub / GitLab stars to estimate this. > :criterion: https://github.com/Snaipe/Criterion[Criterion] > :c-tap: https://github.com/rra/c-tap-harness/[C TAP] > :check: https://libcheck.github.io/check/[Check] > +:clar: https://github.com/clar-test/clar[Clar] > > [format="csv",options="header",width="33%",subs="specialcharacters,attributes,quotes,macros"] > |===== > @@ -212,6 +213,7 @@ Framework,"<<license,License>>","<<vendorable-or-ubiquitous,Vendorable or ubiqui > {criterion},{mit},{false},{partial},{true},{true},{true},{true},{true},{false},{true},19,1800 > {c-tap},{expat},{true},{partial},{partial},{true},{false},{true},{false},{false},{false},4,33 > {check},{lgpl},{false},{partial},{true},{true},{true},{false},{false},{false},{true},17,973 > +{clar},{lgpl},{false},{partial},{true},{true},{true},{true},{false},{false},{true},1,192 > |===== Isn't clar ISC-licensed, not LGPL? https://github.com/clar-test/clar/blob/main/COPYING