1*1f57069fSjruoho#! /usr/bin/atf-sh 2*1f57069fSjruoho# 3*1f57069fSjruoho# $NetBSD: t_basic.sh,v 1.1 2011/05/03 07:23:19 jruoho Exp $ 4*1f57069fSjruoho# 5*1f57069fSjruoho# Copyright (c) 2011 The NetBSD Foundation, Inc. 6*1f57069fSjruoho# All rights reserved. 7*1f57069fSjruoho# 8*1f57069fSjruoho# This code is derived from software contributed to The NetBSD Foundation 9*1f57069fSjruoho# by Jukka Ruohonen. 10*1f57069fSjruoho# 11*1f57069fSjruoho# Redistribution and use in source and binary forms, with or without 12*1f57069fSjruoho# modification, are permitted provided that the following conditions 13*1f57069fSjruoho# are met: 14*1f57069fSjruoho# 1. Redistributions of source code must retain the above copyright 15*1f57069fSjruoho# notice, this list of conditions and the following disclaimer. 16*1f57069fSjruoho# 2. Redistributions in binary form must reproduce the above copyright 17*1f57069fSjruoho# notice, this list of conditions and the following disclaimer in the 18*1f57069fSjruoho# documentation and/or other materials provided with the distribution. 19*1f57069fSjruoho# 20*1f57069fSjruoho# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21*1f57069fSjruoho# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22*1f57069fSjruoho# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23*1f57069fSjruoho# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24*1f57069fSjruoho# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25*1f57069fSjruoho# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26*1f57069fSjruoho# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27*1f57069fSjruoho# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28*1f57069fSjruoho# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29*1f57069fSjruoho# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30*1f57069fSjruoho# POSSIBILITY OF SUCH DAMAGE. 31*1f57069fSjruoho# 32*1f57069fSjruoho 33*1f57069fSjruohoatf_test_case basic 34*1f57069fSjruohononexistent_head() { 35*1f57069fSjruoho atf_set "descr" "A basic test of unifdef(1)" 36*1f57069fSjruoho} 37*1f57069fSjruoho 38*1f57069fSjruohobasic_body() { 39*1f57069fSjruoho 40*1f57069fSjruoho # See PR bin/42628. 41*1f57069fSjruoho # 42*1f57069fSjruoho atf_check -s ignore -o file:$(atf_get_srcdir)/d_basic.out \ 43*1f57069fSjruoho -x "unifdef -U__FreeBSD__ $(atf_get_srcdir)/d_basic.in" 44*1f57069fSjruoho} 45*1f57069fSjruoho 46*1f57069fSjruohoatf_init_test_cases() { 47*1f57069fSjruoho atf_add_test_case basic 48*1f57069fSjruoho} 49