t_sysctl.sh revision 272345
1246149Ssjg# $NetBSD: t_sysctl.sh,v 1.2 2014/05/16 18:50:28 palle Exp $
2246149Ssjg#
3246149Ssjg# Copyright (c) 2012 The NetBSD Foundation, Inc.
4246149Ssjg# All rights reserved.
5246149Ssjg#
6246149Ssjg# This code is derived from software contributed to The NetBSD Foundation
7246149Ssjg# by Jukka Ruohonen.
8246149Ssjg#
9246149Ssjg# Redistribution and use in source and binary forms, with or without
10246149Ssjg# modification, are permitted provided that the following conditions
11246149Ssjg# are met:
12246149Ssjg# 1. Redistributions of source code must retain the above copyright
13246149Ssjg#    notice, this list of conditions and the following disclaimer.
14246149Ssjg# 2. Redistributions in binary form must reproduce the above copyright
15246149Ssjg#    notice, this list of conditions and the following disclaimer in the
16246149Ssjg#    documentation and/or other materials provided with the distribution.
17246149Ssjg#
18246149Ssjg# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19246149Ssjg# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20246149Ssjg# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21246149Ssjg# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22246149Ssjg# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23246149Ssjg# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24246149Ssjg# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25246149Ssjg# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26246149Ssjg# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27246149Ssjg# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28246149Ssjg# POSSIBILITY OF SUCH DAMAGE.
29246149Ssjg#
30246149Ssjg
31246149Ssjgatf_test_case basic
32246149Ssjgbasic_head() {
33246149Ssjg	atf_set "descr" "Test that sysctl(8) works"
34246149Ssjg}
35246149Ssjg
36246149Ssjgbasic_body() {
37246149Ssjg
38246149Ssjg	atf_check -s exit:0 -o ignore -e empty -x "sysctl -a"
39246149Ssjg	atf_check -s exit:0 -o ignore -e empty -x "sysctl -d"
40246149Ssjg}
41246149Ssjg
42246149Ssjgatf_init_test_cases() {
43246149Ssjg
44246149Ssjg	atf_add_test_case basic
45246149Ssjg}
46246149Ssjg