Adding new "test interfaces" to work with Kyua?

Alan Somers asomers at freebsd.org
Wed Nov 27 04:21:26 UTC 2013


It looks like you're interfacing to TAP through its command-line
interface.  Unfortunately, as your man page notes, that means that
"kyua list" can't list bundled tests, and thus it will treat them as a
single unit.

Within FreeBSD, most if not all of the TAP-based tests use Perl's
Prove module.  Have you considered writing a Prove backend for Kyua
instead of a TAP backend?  If you write it in Perl, it could have much
more intimate access to the tests.  Instead of interfacing through the
CLI, it could dynamically load the tests and interrogate them
directly.  That's the approach that I'm taking with the Python backend
that I've been working on.  I'll post more details about that in a
separate thread.

-Alan

On Tue, Nov 26, 2013 at 9:29 AM, Julio Merino <julio at meroh.net> wrote:
> On Mon, Nov 25, 2013 at 12:13 PM, Julio Merino <julio at meroh.net> wrote:
>> Bleh.  Turns out that prove-based test programs do not return 1 on
>> failure.  Time to write a prove tester given that I have some spare
>> time this week :-P
>
> Alright!  I've committed a preliminary implementation of a tester for
> TAP.  See https://code.google.com/p/kyua/issues/detail?id=74 for the
> relevant commits.
>
> Testing welcome.
>
> --
> Julio Merino / @jmmv
> _______________________________________________
> freebsd-testing at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-testing
> To unsubscribe, send any mail to "freebsd-testing-unsubscribe at freebsd.org"


More information about the freebsd-testing mailing list