1240116Smarcel# Copyright (c) 2010 The NetBSD Foundation, Inc.
2240116Smarcel# All rights reserved.
3240116Smarcel#
4240116Smarcel# Redistribution and use in source and binary forms, with or without
5240116Smarcel# modification, are permitted provided that the following conditions
6240116Smarcel# are met:
7240116Smarcel# 1. Redistributions of source code must retain the above copyright
8240116Smarcel#    notice, this list of conditions and the following disclaimer.
9240116Smarcel# 2. Redistributions in binary form must reproduce the above copyright
10240116Smarcel#    notice, this list of conditions and the following disclaimer in the
11240116Smarcel#    documentation and/or other materials provided with the distribution.
12240116Smarcel#
13240116Smarcel# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
14240116Smarcel# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
15240116Smarcel# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16240116Smarcel# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17240116Smarcel# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
18240116Smarcel# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19240116Smarcel# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
20240116Smarcel# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21240116Smarcel# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
22240116Smarcel# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23240116Smarcel# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
24240116Smarcel# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25240116Smarcel
26240116Smarcelatf_test_case no_descr
27240116Smarcelno_descr_head()
28240116Smarcel{
29240116Smarcel    atf_set "descr" "Tests that the description may not be present"
30240116Smarcel}
31240116Smarcelno_descr_body()
32240116Smarcel{
33240116Smarcel    for h in $(get_helpers); do
34240116Smarcel        atf_check -s eq:0 -o ignore -e ignore ${h} -s $(atf_get_srcdir) -l
35240116Smarcel        atf_check -s eq:0 -o match:passed -e ignore ${h} -s $(atf_get_srcdir) \
36240116Smarcel            metadata_no_descr
37240116Smarcel    done
38240116Smarcel}
39240116Smarcel
40240116Smarcelatf_test_case no_head
41240116Smarcelno_head_head()
42240116Smarcel{
43240116Smarcel    atf_set "descr" "Tests that the head may not be present"
44240116Smarcel}
45240116Smarcelno_head_body()
46240116Smarcel{
47240116Smarcel    for h in $(get_helpers); do
48240116Smarcel        atf_check -s eq:0 -o ignore -e ignore ${h} -s $(atf_get_srcdir) -l
49240116Smarcel        atf_check -s eq:0 -o match:passed -e ignore ${h} -s $(atf_get_srcdir) \
50240116Smarcel            metadata_no_head
51240116Smarcel    done
52240116Smarcel}
53240116Smarcel
54240116Smarcelatf_init_test_cases()
55240116Smarcel{
56240116Smarcel    atf_add_test_case no_descr
57240116Smarcel    atf_add_test_case no_head
58240116Smarcel}
59240116Smarcel
60240116Smarcel# vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4
61