h_tp_basic_sh.sh revision a747113422afaa29ce72d2c5ba7f0b7ea9ec2054
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews#
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# Automated Testing Framework (atf)
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews#
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# Copyright (c) 2007 The NetBSD Foundation, Inc.
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# All rights reserved.
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews#
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# Redistribution and use in source and binary forms, with or without
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# modification, are permitted provided that the following conditions
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# are met:
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# 1. Redistributions of source code must retain the above copyright
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# notice, this list of conditions and the following disclaimer.
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# 2. Redistributions in binary form must reproduce the above copyright
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# notice, this list of conditions and the following disclaimer in the
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# documentation and/or other materials provided with the distribution.
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews#
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews#
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsatf_test_case pass
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewspass_head()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_set "descr" "An empty test case that always passes"
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewspass_body()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_pass
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsatf_test_case fail
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsfail_head()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_set "descr" "An empty test case that always fails"
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsfail_body()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_fail "On purpose"
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsatf_test_case skip
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsskip_head()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_set "descr" "An empty test case that is always skipped"
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsskip_body()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_skip "By design"
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsatf_test_case default
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsdefault_head()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_set "descr" "A test case that passes without explicitly" \
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews "stating it"
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsdefault_body()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews :
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrewsatf_init_test_cases()
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews{
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_add_test_case pass
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_add_test_case fail
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_add_test_case skip
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews atf_add_test_case default
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews}
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews# vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4
3b83676e079a799f97ad8b76c057e6ecb0426b1dMark Andrews