11.1Smartin# $NetBSD: t_terminfo.sh,v 1.1 2012/06/06 21:23:10 martin Exp $ 21.1Smartin# 31.1Smartin# Copyright (c) 2011 The NetBSD Foundation, Inc. 41.1Smartin# All rights reserved. 51.1Smartin# 61.1Smartin# Redistribution and use in source and binary forms, with or without 71.1Smartin# modification, are permitted provided that the following conditions 81.1Smartin# are met: 91.1Smartin# 1. Redistributions of source code must retain the above copyright 101.1Smartin# notice, this list of conditions and the following disclaimer. 111.1Smartin# 2. Redistributions in binary form must reproduce the above copyright 121.1Smartin# notice, this list of conditions and the following disclaimer in the 131.1Smartin# documentation and/or other materials provided with the distribution. 141.1Smartin# 151.1Smartin# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 161.1Smartin# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 171.1Smartin# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 181.1Smartin# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 191.1Smartin# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 201.1Smartin# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 211.1Smartin# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 221.1Smartin# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 231.1Smartin# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 241.1Smartin# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 251.1Smartin# POSSIBILITY OF SUCH DAMAGE. 261.1Smartin# 271.1Smartin 281.1Smartinatf_test_case basic 291.1Smartinbasic_head() { 301.1Smartin atf_set "descr" "infocmp can decode one of some existing term types" 311.1Smartin atf_set "require.progs" "infocmp env" 321.1Smartin} 331.1Smartin 341.1Smartinbasic_body() { 351.1Smartin for term in ansi vt100 wsvt25 sun-ss5 ibcs2 vt52 386at h19k h19kermit 361.1Smartin do 371.1Smartin atf_check -s exit:0 -e empty -o not-empty \ 381.1Smartin env TERM="${term}" infocmp 391.1Smartin done 401.1Smartin} 411.1Smartin 421.1Smartinatf_test_case missing 431.1Smartinmissing_head() { 441.1Smartin atf_set "descr" "infocmp fails to decode non existent entries" 451.1Smartin atf_set "require.progs" "infocmp env" 461.1Smartin} 471.1Smartin 481.1Smartinmissing_body() { 491.1Smartin for term in this-is-no-term nonexistent 501.1Smartin do 511.1Smartin atf_check -s not-exit:0 -e not-empty -o empty \ 521.1Smartin env TERM="${term}" infocmp 531.1Smartin done 541.1Smartin} 551.1Smartin 561.1Smartinatf_init_test_cases() 571.1Smartin{ 581.1Smartin 591.1Smartin atf_add_test_case basic 601.1Smartin atf_add_test_case missing 611.1Smartin} 621.1Smartin 63