Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests Add require.progs properties for needed tools to avoid...



details:   https://anonhg.NetBSD.org/src/rev/2b3a7de2fa66
branches:  trunk
changeset: 763572:2b3a7de2fa66
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Mar 25 19:19:45 2011 +0000

description:
Add require.progs properties for needed tools to avoid failures when
comp.tgz set is not installed.

diffstat:

 tests/toolchain/cc/t_hello.sh           |  4 +++-
 tests/util/config/t_config.sh           |  3 ++-
 tests/util/xlint/lint1/t_integration.sh |  3 ++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r c2b18287280a -r 2b3a7de2fa66 tests/toolchain/cc/t_hello.sh
--- a/tests/toolchain/cc/t_hello.sh     Fri Mar 25 18:07:04 2011 +0000
+++ b/tests/toolchain/cc/t_hello.sh     Fri Mar 25 19:19:45 2011 +0000
@@ -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() {
diff -r c2b18287280a -r 2b3a7de2fa66 tests/util/config/t_config.sh
--- a/tests/util/config/t_config.sh     Fri Mar 25 18:07:04 2011 +0000
+++ b/tests/util/config/t_config.sh     Fri Mar 25 19:19:45 2011 +0000
@@ -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}'; \
diff -r c2b18287280a -r 2b3a7de2fa66 tests/util/xlint/lint1/t_integration.sh
--- a/tests/util/xlint/lint1/t_integration.sh   Fri Mar 25 18:07:04 2011 +0000
+++ b/tests/util/xlint/lint1/t_integration.sh   Fri Mar 25 19:19:45 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index