1dnl 2dnl Automated Testing Framework (atf) 3dnl 4dnl Copyright (c) 2007 The NetBSD Foundation, Inc. 5dnl All rights reserved. 6dnl 7dnl Redistribution and use in source and binary forms, with or without 8dnl modification, are permitted provided that the following conditions 9dnl are met: 10dnl 1. Redistributions of source code must retain the above copyright 11dnl notice, this list of conditions and the following disclaimer. 12dnl 2. Redistributions in binary form must reproduce the above copyright 13dnl notice, this list of conditions and the following disclaimer in the 14dnl documentation and/or other materials provided with the distribution. 15dnl 16dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 17dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 18dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 21dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28dnl 29 30AT_SETUP([test_program: list test cases]) 31 32for h in tp_basic_c tp_basic_cpp tp_basic_sh; do 33 34AT_DATA([expout], [Content-Type: application/X-atf-tp; version="1" 35 36ident: pass 37descr: An empty test case that always passes 38 39ident: fail 40descr: An empty test case that always fails 41 42ident: skip 43descr: An empty test case that is always skipped 44 45ident: default 46descr: A test case that passes without explicitly stating it 47]) 48 49AT_CHECK([TEST_HELPER(${h}) -l], [0], [expout], []) 50 51AT_CHECK([TEST_HELPER(${h}) -l pass], [1], [], [stderr]) 52AT_CHECK([grep 'Cannot provide test case names with -l' stderr], 53 [0], [ignore], []) 54 55AT_CHECK([TEST_HELPER(${h}) -l pass fail], [1], [], [stderr]) 56AT_CHECK([grep 'Cannot provide test case names with -l' stderr], 57 [0], [ignore], []) 58 59done 60 61AT_CLEANUP() 62 63dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4 64