libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.07k stars 209 forks source link

Custom report output #349

Open rossburton opened 1 year ago

rossburton commented 1 year ago

I'm integrating libcheck-using test suites into another framework which expects the output to look like automake, with PASS: testname, FAIL: testname etc.

Is there a extensible way to add a new output format to check, or does this have to be added to check_log.c? I have a horrible patch that adds a new am_lfun but am not sure if that's the cleanest way to do it.

snogge commented 1 year ago

Having automake-accepted output would be great. I've used this driver script https://gist.github.com/snogge/4c2ef158828862fc35d179efe857288d for my autmake+libcheck project. Integrate in automake with

LOG_DRIVER=$(top_srcdir)/build-aux/libcheck-driver

This would require changing all the projects using libcheck instead of just libcheck which is probably not what you want. Unfortunately there is not much happening in this repo lately.