kyua requirement testing for tap tests

Julio Merino jmmv at
Wed Mar 19 23:29:54 UTC 2014

On Thu, Mar 20, 2014 at 8:05 AM, Alan Somers <asomers at> wrote:
> On Wed, Mar 19, 2014 at 3:47 PM, Peel, Casey <casey.peel at> wrote:
>> The src/usr.sbin/sed/tests/ test requires the /usr/share/dict/words file but it doesn't explicitly state this. We don't ship that file and thus the test fails. What is the correct way to specify requirements for tap tests such that kyua skips this test if it doesn't exist? The only option I've come up with thus far is commenting out the multi_test suite altogether from the Makefile.
> You need to set the required_files metadata variable for the test
> program.  I don't think that the TAP API has a way to do that, but can
> you do it in the Kyuafile like this?
> tap_test_program(name="multi_test", required_files="/usr/share/dict/words")

Yes you can. (Note that those parenthesis ought to be braces though.)

And you could do:

TEST_METADATA.multi_test+= required_files="/usr/share/dict/words"

in the Makefile to avoid having to write a Kyuafile by hand.

Fixed in r263388; thanks!

More information about the freebsd-testing mailing list