Module Name: src Committed By: njoly Date: Fri Mar 25 19:19:46 UTC 2011
Modified Files: src/tests/toolchain/cc: t_hello.sh src/tests/util/config: t_config.sh src/tests/util/xlint/lint1: t_integration.sh Log Message: Add require.progs properties for needed tools to avoid failures when comp.tgz set is not installed. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/toolchain/cc/t_hello.sh cvs rdiff -u -r1.2 -r1.3 src/tests/util/config/t_config.sh cvs rdiff -u -r1.1 -r1.2 src/tests/util/xlint/lint1/t_integration.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/toolchain/cc/t_hello.sh diff -u src/tests/toolchain/cc/t_hello.sh:1.1 src/tests/toolchain/cc/t_hello.sh:1.2 --- src/tests/toolchain/cc/t_hello.sh:1.1 Thu Feb 24 10:24:24 2011 +++ src/tests/toolchain/cc/t_hello.sh Fri Mar 25 19:19:45 2011 @@ -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() { Index: src/tests/util/config/t_config.sh diff -u src/tests/util/config/t_config.sh:1.2 src/tests/util/config/t_config.sh:1.3 --- src/tests/util/config/t_config.sh:1.2 Sun Nov 7 17:51:22 2010 +++ src/tests/util/config/t_config.sh Fri Mar 25 19:19:46 2011 @@ -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 @@ atf_test_case "${name}" eval "${name}_head() { \ atf_set descr \"${descr}\"; \ + atf_set require.progs \"config\"; \ }" eval "${name}_body() { \ run_and_check_${type} '${name}'; \ Index: src/tests/util/xlint/lint1/t_integration.sh diff -u src/tests/util/xlint/lint1/t_integration.sh:1.1 src/tests/util/xlint/lint1/t_integration.sh:1.2 --- src/tests/util/xlint/lint1/t_integration.sh:1.1 Sun Jul 18 10:11:01 2010 +++ src/tests/util/xlint/lint1/t_integration.sh Fri Mar 25 19:19:46 2011 @@ -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 @@ atf_test_case ${name} eval "${name}_head() { atf_set \"descr\" \"${descr}\"; + atf_set \"require.progs\" \"${LINT1}\"; }" eval "${name}_body() { ${result} d_${name}.c;