xref: /freebsd/share/examples/tests/tests/tap/Kyuafile (revision 6ef644f5)
11c3f620cSEnji Cooper--
21c3f620cSEnji Cooper-- Copyright 2013 Google Inc.
31c3f620cSEnji Cooper-- All rights reserved.
41c3f620cSEnji Cooper--
51c3f620cSEnji Cooper-- Redistribution and use in source and binary forms, with or without
61c3f620cSEnji Cooper-- modification, are permitted provided that the following conditions are
71c3f620cSEnji Cooper-- met:
81c3f620cSEnji Cooper--
91c3f620cSEnji Cooper-- * Redistributions of source code must retain the above copyright
101c3f620cSEnji Cooper--   notice, this list of conditions and the following disclaimer.
111c3f620cSEnji Cooper-- * Redistributions in binary form must reproduce the above copyright
121c3f620cSEnji Cooper--   notice, this list of conditions and the following disclaimer in the
131c3f620cSEnji Cooper--   documentation and/or other materials provided with the distribution.
141c3f620cSEnji Cooper-- * Neither the name of Google Inc. nor the names of its contributors
151c3f620cSEnji Cooper--   may be used to endorse or promote products derived from this software
161c3f620cSEnji Cooper--   without specific prior written permission.
171c3f620cSEnji Cooper--
181c3f620cSEnji Cooper-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
191c3f620cSEnji Cooper-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
201c3f620cSEnji Cooper-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
211c3f620cSEnji Cooper-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
221c3f620cSEnji Cooper-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
231c3f620cSEnji Cooper-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
241c3f620cSEnji Cooper-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
251c3f620cSEnji Cooper-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
261c3f620cSEnji Cooper-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
271c3f620cSEnji Cooper-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
281c3f620cSEnji Cooper-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
291c3f620cSEnji Cooper
301c3f620cSEnji Coopersyntax(2)
311c3f620cSEnji Cooper
321c3f620cSEnji Cooper-- All tests provided by the FreeBSD base system should set the test_suite
331c3f620cSEnji Cooper-- property to FreeBSD.  This creates a namespace in the configuration file
341c3f620cSEnji Cooper-- in which specific run-time properties can be passed to the tests below.
351c3f620cSEnji Coopertest_suite('FreeBSD')
361c3f620cSEnji Cooper
371c3f620cSEnji Cooper-- Register the various test programs into the test suite defined in this
381c3f620cSEnji Cooper-- directory.
391c3f620cSEnji Cooper--
401c3f620cSEnji Cooper-- Because plain test programs cannot define metadata in their code (they
411c3f620cSEnji Cooper-- have no mechanism to communicate that to Kyua), we can instead define
421c3f620cSEnji Cooper-- any metadata properties in here.  These have the exact same meaning as
431c3f620cSEnji Cooper-- their ATF counterparts.  These properties are often useful to define
441c3f620cSEnji Cooper-- prerequisites for the execution of the tests.
451c3f620cSEnji Coopertap_test_program{name='cp_test', required_programs='/bin/cp'}
461c3f620cSEnji Coopertap_test_program{name='printf_test'}
47