Add require.progs properties for needed tools to avoid failures when

comp.tgz set is not installed.
This commit is contained in:
njoly 2011-03-25 19:19:45 +00:00
parent cb1cd7e860
commit 53ff676914
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: t_hello.sh,v 1.1 2011/02/24 10:24:24 pooka Exp $
# $NetBSD: t_hello.sh,v 1.2 2011/03/25 19:19:45 njoly Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
@ -28,11 +28,13 @@
atf_test_case hello
hello_head() {
atf_set "descr" "compile and run \"hello world\""
atf_set "require.progs" "cc"
}
atf_test_case hello_pic
hello_pic_head() {
atf_set "descr" "compile and run PIC \"hello world\""
atf_set "require.progs" "cc"
}
hello_body() {

View File

@ -1,4 +1,4 @@
# $NetBSD: t_config.sh,v 1.2 2010/11/07 17:51:22 jmmv Exp $
# $NetBSD: t_config.sh,v 1.3 2011/03/25 19:19:46 njoly Exp $
#
# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@ -59,6 +59,7 @@ test_case()
atf_test_case "${name}"
eval "${name}_head() { \
atf_set descr \"${descr}\"; \
atf_set require.progs \"config\"; \
}"
eval "${name}_body() { \
run_and_check_${type} '${name}'; \

View File

@ -1,4 +1,4 @@
# $NetBSD: t_integration.sh,v 1.1 2010/07/18 10:11:01 jmmv Exp $
# $NetBSD: t_integration.sh,v 1.2 2011/03/25 19:19:46 njoly Exp $
#
# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@ -49,6 +49,7 @@ test_case()
atf_test_case ${name}
eval "${name}_head() {
atf_set \"descr\" \"${descr}\";
atf_set \"require.progs\" \"${LINT1}\";
}"
eval "${name}_body() {
${result} d_${name}.c;