Nik Clayton wrote: > Geoffrey Young wrote: > >>> Since you're using C++, you can probably use libtap >>> (http://www.onlamp.com/pub/a/onlamp/2006/01/19/libtap.html and >>> http://jc.ngo.org.uk/trac-bin/trac.cgi/wiki/LibTap) for writing the >>> tests and >>> then you could use a Perl harnes to collect those results. >> >> >> just out of curiosity, has anyone gotten this to work? about two months >> ago I tried to use it for a project but struggled with compilation >> issues that were sufficient for me to stop trying... > > > I managed to get it to work. But that's probably something of a given.
:) > > I never received much positive feedback about libtap, so I stuck it on > the backburner, figuring that people were using other C frameworks. that's too bad. I definitely wouldn't give it up - it would be great to have a robust tap library for C, and that was exactly what I was looking for. I suspect that all tap fans would love to know that something in C is being maintained... when they need it :) > > I've just gone back to check, and it seems that a few people have > submitted bug reports, but trac wasn't forwarding them to me, so I never > saw them. hmph. > > If you let me know what the compilation issues where I can try and > resolve them. I don't know that I'll be able to do that with exact precision. I was at a client site and they were using their own test library, so I spent maybe two hours trying to get libtap to work instead. I was met with all kinds of unresolved symbols or whatnot, which was painful for me as just a casual C guy... really, to be ultimately useful it would be great if it were all very self contained. for example, if it were all in libtap.h as a set of macros or something so I could include just one file and *poof* that would be awesome. well, from an end-user pov more than a developer pov :) but my memory tells me the process was actually a bit more than that, so it wasn't exactly easy for me to use, which made me grumble (and a bit sad). anyway, sorry I can't be more specific at the moment - I probably should have bugged you at the time. if I ever do try it again I'll let you know. --Geoff