1*11be35a1SLionel Sambuc# 2*11be35a1SLionel Sambuc# Automated Testing Framework (atf) 3*11be35a1SLionel Sambuc# 4*11be35a1SLionel Sambuc# Copyright (c) 2007 The NetBSD Foundation, Inc. 5*11be35a1SLionel Sambuc# All rights reserved. 6*11be35a1SLionel Sambuc# 7*11be35a1SLionel Sambuc# Redistribution and use in source and binary forms, with or without 8*11be35a1SLionel Sambuc# modification, are permitted provided that the following conditions 9*11be35a1SLionel Sambuc# are met: 10*11be35a1SLionel Sambuc# 1. Redistributions of source code must retain the above copyright 11*11be35a1SLionel Sambuc# notice, this list of conditions and the following disclaimer. 12*11be35a1SLionel Sambuc# 2. Redistributions in binary form must reproduce the above copyright 13*11be35a1SLionel Sambuc# notice, this list of conditions and the following disclaimer in the 14*11be35a1SLionel Sambuc# documentation and/or other materials provided with the distribution. 15*11be35a1SLionel Sambuc# 16*11be35a1SLionel Sambuc# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 17*11be35a1SLionel Sambuc# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 18*11be35a1SLionel Sambuc# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19*11be35a1SLionel Sambuc# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20*11be35a1SLionel Sambuc# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 21*11be35a1SLionel Sambuc# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*11be35a1SLionel Sambuc# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23*11be35a1SLionel Sambuc# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24*11be35a1SLionel Sambuc# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25*11be35a1SLionel Sambuc# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26*11be35a1SLionel Sambuc# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27*11be35a1SLionel Sambuc# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28*11be35a1SLionel Sambuc# 29*11be35a1SLionel Sambuc 30*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 31*11be35a1SLionel Sambuc# Helper tests for "t_cleanup". 32*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 33*11be35a1SLionel Sambuc 34*11be35a1SLionel Sambucatf_test_case cleanup_pass cleanup 35*11be35a1SLionel Sambuccleanup_pass_head() 36*11be35a1SLionel Sambuc{ 37*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_cleanup test program" 38*11be35a1SLionel Sambuc} 39*11be35a1SLionel Sambuccleanup_pass_body() 40*11be35a1SLionel Sambuc{ 41*11be35a1SLionel Sambuc touch $(atf_config_get tmpfile) 42*11be35a1SLionel Sambuc} 43*11be35a1SLionel Sambuccleanup_pass_cleanup() 44*11be35a1SLionel Sambuc{ 45*11be35a1SLionel Sambuc if [ $(atf_config_get cleanup no) = yes ]; then 46*11be35a1SLionel Sambuc rm $(atf_config_get tmpfile) 47*11be35a1SLionel Sambuc fi 48*11be35a1SLionel Sambuc} 49*11be35a1SLionel Sambuc 50*11be35a1SLionel Sambucatf_test_case cleanup_fail cleanup 51*11be35a1SLionel Sambuccleanup_fail_head() 52*11be35a1SLionel Sambuc{ 53*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_cleanup test program" 54*11be35a1SLionel Sambuc} 55*11be35a1SLionel Sambuccleanup_fail_body() 56*11be35a1SLionel Sambuc{ 57*11be35a1SLionel Sambuc touch $(atf_config_get tmpfile) 58*11be35a1SLionel Sambuc atf_fail "On purpose" 59*11be35a1SLionel Sambuc} 60*11be35a1SLionel Sambuccleanup_fail_cleanup() 61*11be35a1SLionel Sambuc{ 62*11be35a1SLionel Sambuc if [ $(atf_config_get cleanup no) = yes ]; then 63*11be35a1SLionel Sambuc rm $(atf_config_get tmpfile) 64*11be35a1SLionel Sambuc fi 65*11be35a1SLionel Sambuc} 66*11be35a1SLionel Sambuc 67*11be35a1SLionel Sambucatf_test_case cleanup_skip cleanup 68*11be35a1SLionel Sambuccleanup_skip_head() 69*11be35a1SLionel Sambuc{ 70*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_cleanup test program" 71*11be35a1SLionel Sambuc} 72*11be35a1SLionel Sambuccleanup_skip_body() 73*11be35a1SLionel Sambuc{ 74*11be35a1SLionel Sambuc touch $(atf_config_get tmpfile) 75*11be35a1SLionel Sambuc atf_skip "On purpose" 76*11be35a1SLionel Sambuc} 77*11be35a1SLionel Sambuccleanup_skip_cleanup() 78*11be35a1SLionel Sambuc{ 79*11be35a1SLionel Sambuc if [ $(atf_config_get cleanup no) = yes ]; then 80*11be35a1SLionel Sambuc rm $(atf_config_get tmpfile) 81*11be35a1SLionel Sambuc fi 82*11be35a1SLionel Sambuc} 83*11be35a1SLionel Sambuc 84*11be35a1SLionel Sambucatf_test_case cleanup_curdir cleanup 85*11be35a1SLionel Sambuccleanup_curdir_head() 86*11be35a1SLionel Sambuc{ 87*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_cleanup test program" 88*11be35a1SLionel Sambuc} 89*11be35a1SLionel Sambuccleanup_curdir_body() 90*11be35a1SLionel Sambuc{ 91*11be35a1SLionel Sambuc echo 1234 >oldvalue 92*11be35a1SLionel Sambuc} 93*11be35a1SLionel Sambuccleanup_curdir_cleanup() 94*11be35a1SLionel Sambuc{ 95*11be35a1SLionel Sambuc test -f oldvalue && echo "Old value: $(cat oldvalue)" 96*11be35a1SLionel Sambuc} 97*11be35a1SLionel Sambuc 98*11be35a1SLionel Sambucatf_test_case cleanup_sigterm cleanup 99*11be35a1SLionel Sambuccleanup_sigterm_head() 100*11be35a1SLionel Sambuc{ 101*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_cleanup test program" 102*11be35a1SLionel Sambuc} 103*11be35a1SLionel Sambuccleanup_sigterm_body() 104*11be35a1SLionel Sambuc{ 105*11be35a1SLionel Sambuc touch $(atf_config_get tmpfile) 106*11be35a1SLionel Sambuc kill $$ 107*11be35a1SLionel Sambuc touch $(atf_config_get tmpfile).no 108*11be35a1SLionel Sambuc} 109*11be35a1SLionel Sambuccleanup_sigterm_cleanup() 110*11be35a1SLionel Sambuc{ 111*11be35a1SLionel Sambuc rm $(atf_config_get tmpfile) 112*11be35a1SLionel Sambuc} 113*11be35a1SLionel Sambuc 114*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 115*11be35a1SLionel Sambuc# Helper tests for "t_config". 116*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 117*11be35a1SLionel Sambuc 118*11be35a1SLionel Sambucatf_test_case config_unset 119*11be35a1SLionel Sambucconfig_unset_head() 120*11be35a1SLionel Sambuc{ 121*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_config test program" 122*11be35a1SLionel Sambuc} 123*11be35a1SLionel Sambucconfig_unset_body() 124*11be35a1SLionel Sambuc{ 125*11be35a1SLionel Sambuc if atf_config_has 'test'; then 126*11be35a1SLionel Sambuc atf_fail "Test variable already defined" 127*11be35a1SLionel Sambuc fi 128*11be35a1SLionel Sambuc} 129*11be35a1SLionel Sambuc 130*11be35a1SLionel Sambucatf_test_case config_empty 131*11be35a1SLionel Sambucconfig_empty_head() 132*11be35a1SLionel Sambuc{ 133*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_config test program" 134*11be35a1SLionel Sambuc} 135*11be35a1SLionel Sambucconfig_empty_body() 136*11be35a1SLionel Sambuc{ 137*11be35a1SLionel Sambuc atf_check_equal "$(atf_config_get 'test')" "" 138*11be35a1SLionel Sambuc} 139*11be35a1SLionel Sambuc 140*11be35a1SLionel Sambucatf_test_case config_value 141*11be35a1SLionel Sambucconfig_value_head() 142*11be35a1SLionel Sambuc{ 143*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_config test program" 144*11be35a1SLionel Sambuc} 145*11be35a1SLionel Sambucconfig_value_body() 146*11be35a1SLionel Sambuc{ 147*11be35a1SLionel Sambuc atf_check_equal "$(atf_config_get 'test')" "foo" 148*11be35a1SLionel Sambuc} 149*11be35a1SLionel Sambuc 150*11be35a1SLionel Sambucatf_test_case config_multi_value 151*11be35a1SLionel Sambucconfig_multi_value_head() 152*11be35a1SLionel Sambuc{ 153*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_config test program" 154*11be35a1SLionel Sambuc} 155*11be35a1SLionel Sambucconfig_multi_value_body() 156*11be35a1SLionel Sambuc{ 157*11be35a1SLionel Sambuc atf_check_equal "$(atf_config_get 'test')" "foo bar" 158*11be35a1SLionel Sambuc} 159*11be35a1SLionel Sambuc 160*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 161*11be35a1SLionel Sambuc# Helper tests for "t_expect". 162*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 163*11be35a1SLionel Sambuc 164*11be35a1SLionel Sambucatf_test_case expect_pass_and_pass 165*11be35a1SLionel Sambucexpect_pass_and_pass_body() 166*11be35a1SLionel Sambuc{ 167*11be35a1SLionel Sambuc atf_expect_pass 168*11be35a1SLionel Sambuc} 169*11be35a1SLionel Sambuc 170*11be35a1SLionel Sambucatf_test_case expect_pass_but_fail_requirement 171*11be35a1SLionel Sambucexpect_pass_but_fail_requirement_body() 172*11be35a1SLionel Sambuc{ 173*11be35a1SLionel Sambuc atf_expect_pass 174*11be35a1SLionel Sambuc atf_fail "Some reason" 175*11be35a1SLionel Sambuc} 176*11be35a1SLionel Sambuc 177*11be35a1SLionel Sambucatf_test_case expect_pass_but_fail_check 178*11be35a1SLionel Sambucexpect_pass_but_fail_check_body() 179*11be35a1SLionel Sambuc{ 180*11be35a1SLionel Sambuc atf_fail "Non-fatal failures not implemented" 181*11be35a1SLionel Sambuc} 182*11be35a1SLionel Sambuc 183*11be35a1SLionel Sambucatf_test_case expect_fail_and_fail_requirement 184*11be35a1SLionel Sambucexpect_fail_and_fail_requirement_body() 185*11be35a1SLionel Sambuc{ 186*11be35a1SLionel Sambuc atf_expect_fail "Fail reason" 187*11be35a1SLionel Sambuc atf_fail "The failure" 188*11be35a1SLionel Sambuc atf_expect_pass 189*11be35a1SLionel Sambuc} 190*11be35a1SLionel Sambuc 191*11be35a1SLionel Sambucatf_test_case expect_fail_and_fail_check 192*11be35a1SLionel Sambucexpect_fail_and_fail_check_body() 193*11be35a1SLionel Sambuc{ 194*11be35a1SLionel Sambuc atf_fail "Non-fatal failures not implemented" 195*11be35a1SLionel Sambuc} 196*11be35a1SLionel Sambuc 197*11be35a1SLionel Sambucatf_test_case expect_fail_but_pass 198*11be35a1SLionel Sambucexpect_fail_but_pass_body() 199*11be35a1SLionel Sambuc{ 200*11be35a1SLionel Sambuc atf_expect_fail "Fail first" 201*11be35a1SLionel Sambuc atf_expect_pass 202*11be35a1SLionel Sambuc} 203*11be35a1SLionel Sambuc 204*11be35a1SLionel Sambucatf_test_case expect_exit_any_and_exit 205*11be35a1SLionel Sambucexpect_exit_any_and_exit_body() 206*11be35a1SLionel Sambuc{ 207*11be35a1SLionel Sambuc atf_expect_exit -1 "Call will exit" 208*11be35a1SLionel Sambuc exit 0 209*11be35a1SLionel Sambuc} 210*11be35a1SLionel Sambuc 211*11be35a1SLionel Sambucatf_test_case expect_exit_code_and_exit 212*11be35a1SLionel Sambucexpect_exit_code_and_exit_body() 213*11be35a1SLionel Sambuc{ 214*11be35a1SLionel Sambuc atf_expect_exit 123 "Call will exit" 215*11be35a1SLionel Sambuc exit 123 216*11be35a1SLionel Sambuc} 217*11be35a1SLionel Sambuc 218*11be35a1SLionel Sambucatf_test_case expect_exit_but_pass 219*11be35a1SLionel Sambucexpect_exit_but_pass_body() 220*11be35a1SLionel Sambuc{ 221*11be35a1SLionel Sambuc atf_expect_exit -1 "Call won't exit" 222*11be35a1SLionel Sambuc} 223*11be35a1SLionel Sambuc 224*11be35a1SLionel Sambucatf_test_case expect_signal_any_and_signal 225*11be35a1SLionel Sambucexpect_signal_any_and_signal_body() 226*11be35a1SLionel Sambuc{ 227*11be35a1SLionel Sambuc atf_expect_signal -1 "Call will signal" 228*11be35a1SLionel Sambuc kill -9 $$ 229*11be35a1SLionel Sambuc} 230*11be35a1SLionel Sambuc 231*11be35a1SLionel Sambucatf_test_case expect_signal_no_and_signal 232*11be35a1SLionel Sambucexpect_signal_no_and_signal_body() 233*11be35a1SLionel Sambuc{ 234*11be35a1SLionel Sambuc atf_expect_signal 1 "Call will signal" 235*11be35a1SLionel Sambuc kill -1 $$ 236*11be35a1SLionel Sambuc} 237*11be35a1SLionel Sambuc 238*11be35a1SLionel Sambucatf_test_case expect_signal_but_pass 239*11be35a1SLionel Sambucexpect_signal_but_pass_body() 240*11be35a1SLionel Sambuc{ 241*11be35a1SLionel Sambuc atf_expect_signal -1 "Call won't signal" 242*11be35a1SLionel Sambuc} 243*11be35a1SLionel Sambuc 244*11be35a1SLionel Sambucatf_test_case expect_death_and_exit 245*11be35a1SLionel Sambucexpect_death_and_exit_body() 246*11be35a1SLionel Sambuc{ 247*11be35a1SLionel Sambuc atf_expect_death "Exit case" 248*11be35a1SLionel Sambuc exit 123 249*11be35a1SLionel Sambuc} 250*11be35a1SLionel Sambuc 251*11be35a1SLionel Sambucatf_test_case expect_death_and_signal 252*11be35a1SLionel Sambucexpect_death_and_signal_body() 253*11be35a1SLionel Sambuc{ 254*11be35a1SLionel Sambuc atf_expect_death "Signal case" 255*11be35a1SLionel Sambuc kill -9 $$ 256*11be35a1SLionel Sambuc} 257*11be35a1SLionel Sambuc 258*11be35a1SLionel Sambucatf_test_case expect_death_but_pass 259*11be35a1SLionel Sambucexpect_death_but_pass_body() 260*11be35a1SLionel Sambuc{ 261*11be35a1SLionel Sambuc atf_expect_death "Call won't die" 262*11be35a1SLionel Sambuc} 263*11be35a1SLionel Sambuc 264*11be35a1SLionel Sambucatf_test_case expect_timeout_and_hang 265*11be35a1SLionel Sambucexpect_timeout_and_hang_head() 266*11be35a1SLionel Sambuc{ 267*11be35a1SLionel Sambuc atf_set "timeout" "1" 268*11be35a1SLionel Sambuc} 269*11be35a1SLionel Sambucexpect_timeout_and_hang_body() 270*11be35a1SLionel Sambuc{ 271*11be35a1SLionel Sambuc atf_expect_timeout "Will overrun" 272*11be35a1SLionel Sambuc sleep 5 273*11be35a1SLionel Sambuc} 274*11be35a1SLionel Sambuc 275*11be35a1SLionel Sambucatf_test_case expect_timeout_but_pass 276*11be35a1SLionel Sambucexpect_timeout_but_pass_head() 277*11be35a1SLionel Sambuc{ 278*11be35a1SLionel Sambuc atf_set "timeout" "1" 279*11be35a1SLionel Sambuc} 280*11be35a1SLionel Sambucexpect_timeout_but_pass_body() 281*11be35a1SLionel Sambuc{ 282*11be35a1SLionel Sambuc atf_expect_timeout "Will just exit" 283*11be35a1SLionel Sambuc} 284*11be35a1SLionel Sambuc 285*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 286*11be35a1SLionel Sambuc# Helper tests for "t_meta_data". 287*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 288*11be35a1SLionel Sambuc 289*11be35a1SLionel Sambucatf_test_case metadata_no_descr 290*11be35a1SLionel Sambucmetadata_no_descr_head() 291*11be35a1SLionel Sambuc{ 292*11be35a1SLionel Sambuc : 293*11be35a1SLionel Sambuc} 294*11be35a1SLionel Sambucmetadata_no_descr_body() 295*11be35a1SLionel Sambuc{ 296*11be35a1SLionel Sambuc : 297*11be35a1SLionel Sambuc} 298*11be35a1SLionel Sambuc 299*11be35a1SLionel Sambucatf_test_case metadata_no_head 300*11be35a1SLionel Sambucmetadata_no_head_body() 301*11be35a1SLionel Sambuc{ 302*11be35a1SLionel Sambuc : 303*11be35a1SLionel Sambuc} 304*11be35a1SLionel Sambuc 305*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 306*11be35a1SLionel Sambuc# Helper tests for "t_srcdir". 307*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 308*11be35a1SLionel Sambuc 309*11be35a1SLionel Sambucatf_test_case srcdir_exists 310*11be35a1SLionel Sambucsrcdir_exists_head() 311*11be35a1SLionel Sambuc{ 312*11be35a1SLionel Sambuc atf_set "descr" "Helper test case for the t_srcdir test program" 313*11be35a1SLionel Sambuc} 314*11be35a1SLionel Sambucsrcdir_exists_body() 315*11be35a1SLionel Sambuc{ 316*11be35a1SLionel Sambuc [ -f "$(atf_get_srcdir)/datafile" ] || atf_fail "Cannot find datafile" 317*11be35a1SLionel Sambuc} 318*11be35a1SLionel Sambuc 319*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 320*11be35a1SLionel Sambuc# Helper tests for "t_result". 321*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 322*11be35a1SLionel Sambuc 323*11be35a1SLionel Sambucatf_test_case result_pass 324*11be35a1SLionel Sambucresult_pass_body() 325*11be35a1SLionel Sambuc{ 326*11be35a1SLionel Sambuc echo "msg" 327*11be35a1SLionel Sambuc} 328*11be35a1SLionel Sambuc 329*11be35a1SLionel Sambucatf_test_case result_fail 330*11be35a1SLionel Sambucresult_fail_body() 331*11be35a1SLionel Sambuc{ 332*11be35a1SLionel Sambuc echo "msg" 333*11be35a1SLionel Sambuc atf_fail "Failure reason" 334*11be35a1SLionel Sambuc} 335*11be35a1SLionel Sambuc 336*11be35a1SLionel Sambucatf_test_case result_skip 337*11be35a1SLionel Sambucresult_skip_body() 338*11be35a1SLionel Sambuc{ 339*11be35a1SLionel Sambuc echo "msg" 340*11be35a1SLionel Sambuc atf_skip "Skipped reason" 341*11be35a1SLionel Sambuc} 342*11be35a1SLionel Sambuc 343*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 344*11be35a1SLionel Sambuc# Main. 345*11be35a1SLionel Sambuc# ------------------------------------------------------------------------- 346*11be35a1SLionel Sambuc 347*11be35a1SLionel Sambucatf_init_test_cases() 348*11be35a1SLionel Sambuc{ 349*11be35a1SLionel Sambuc # Add helper tests for t_cleanup. 350*11be35a1SLionel Sambuc atf_add_test_case cleanup_pass 351*11be35a1SLionel Sambuc atf_add_test_case cleanup_fail 352*11be35a1SLionel Sambuc atf_add_test_case cleanup_skip 353*11be35a1SLionel Sambuc atf_add_test_case cleanup_curdir 354*11be35a1SLionel Sambuc atf_add_test_case cleanup_sigterm 355*11be35a1SLionel Sambuc 356*11be35a1SLionel Sambuc # Add helper tests for t_config. 357*11be35a1SLionel Sambuc atf_add_test_case config_unset 358*11be35a1SLionel Sambuc atf_add_test_case config_empty 359*11be35a1SLionel Sambuc atf_add_test_case config_value 360*11be35a1SLionel Sambuc atf_add_test_case config_multi_value 361*11be35a1SLionel Sambuc 362*11be35a1SLionel Sambuc # Add helper tests for t_expect. 363*11be35a1SLionel Sambuc atf_add_test_case expect_pass_and_pass 364*11be35a1SLionel Sambuc atf_add_test_case expect_pass_but_fail_requirement 365*11be35a1SLionel Sambuc atf_add_test_case expect_pass_but_fail_check 366*11be35a1SLionel Sambuc atf_add_test_case expect_fail_and_fail_requirement 367*11be35a1SLionel Sambuc atf_add_test_case expect_fail_and_fail_check 368*11be35a1SLionel Sambuc atf_add_test_case expect_fail_but_pass 369*11be35a1SLionel Sambuc atf_add_test_case expect_exit_any_and_exit 370*11be35a1SLionel Sambuc atf_add_test_case expect_exit_code_and_exit 371*11be35a1SLionel Sambuc atf_add_test_case expect_exit_but_pass 372*11be35a1SLionel Sambuc atf_add_test_case expect_signal_any_and_signal 373*11be35a1SLionel Sambuc atf_add_test_case expect_signal_no_and_signal 374*11be35a1SLionel Sambuc atf_add_test_case expect_signal_but_pass 375*11be35a1SLionel Sambuc atf_add_test_case expect_death_and_exit 376*11be35a1SLionel Sambuc atf_add_test_case expect_death_and_signal 377*11be35a1SLionel Sambuc atf_add_test_case expect_death_but_pass 378*11be35a1SLionel Sambuc atf_add_test_case expect_timeout_and_hang 379*11be35a1SLionel Sambuc atf_add_test_case expect_timeout_but_pass 380*11be35a1SLionel Sambuc 381*11be35a1SLionel Sambuc # Add helper tests for t_meta_data. 382*11be35a1SLionel Sambuc atf_add_test_case metadata_no_descr 383*11be35a1SLionel Sambuc atf_add_test_case metadata_no_head 384*11be35a1SLionel Sambuc 385*11be35a1SLionel Sambuc # Add helper tests for t_srcdir. 386*11be35a1SLionel Sambuc atf_add_test_case srcdir_exists 387*11be35a1SLionel Sambuc 388*11be35a1SLionel Sambuc # Add helper tests for t_result. 389*11be35a1SLionel Sambuc atf_add_test_case result_pass 390*11be35a1SLionel Sambuc atf_add_test_case result_fail 391*11be35a1SLionel Sambuc atf_add_test_case result_skip 392*11be35a1SLionel Sambuc} 393*11be35a1SLionel Sambuc 394*11be35a1SLionel Sambuc# vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4 395