Tue May 3 06:13:06 2011 UTC ()
Add a test for non-critical/low PR bin/43141.


(jruoho)
diff -r1.321 -r1.322 src/distrib/sets/lists/tests/mi
diff -r1.41 -r1.42 src/etc/mtree/NetBSD.dist.tests
diff -r1.2 -r1.3 src/tests/sbin/Makefile
diff -r0 -r1.1 src/tests/sbin/ifconfig/Makefile
diff -r0 -r1.1 src/tests/sbin/ifconfig/t_nonexistent.sh

cvs diff -r1.321 -r1.322 src/distrib/sets/lists/tests/mi (expand / switch to unified diff)

--- src/distrib/sets/lists/tests/mi 2011/05/03 04:50:30 1.321
+++ src/distrib/sets/lists/tests/mi 2011/05/03 06:13:06 1.322
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mi,v 1.321 2011/05/03 04:50:30 jruoho Exp $ 1# $NetBSD: mi,v 1.322 2011/05/03 06:13:06 jruoho Exp $
2# 2#
3# Note: don't delete entries from here - mark them as "obsolete" instead. 3# Note: don't delete entries from here - mark them as "obsolete" instead.
4# 4#
5./etc/mtree/set.tests tests-sys-root 5./etc/mtree/set.tests tests-sys-root
6./usr/libdata/debug/usr/tests tests-base-debug 6./usr/libdata/debug/usr/tests tests-base-debug
7./usr/libdata/debug/usr/tests/atf tests-atf-debug 7./usr/libdata/debug/usr/tests/atf tests-atf-debug
8./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug 8./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug
9./usr/libdata/debug/usr/tests/atf/atf-c/atf_c_test.debug tests-atf-debug debug,atf 9./usr/libdata/debug/usr/tests/atf/atf-c/atf_c_test.debug tests-atf-debug debug,atf
10./usr/libdata/debug/usr/tests/atf/atf-c/build_test.debug tests-atf-debug debug,atf 10./usr/libdata/debug/usr/tests/atf/atf-c/build_test.debug tests-atf-debug debug,atf
11./usr/libdata/debug/usr/tests/atf/atf-c/check_test.debug tests-atf-debug debug,atf 11./usr/libdata/debug/usr/tests/atf/atf-c/check_test.debug tests-atf-debug debug,atf
12./usr/libdata/debug/usr/tests/atf/atf-c/config_test.debug tests-atf-debug debug,atf 12./usr/libdata/debug/usr/tests/atf/atf-c/config_test.debug tests-atf-debug debug,atf
13./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug 13./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug
14./usr/libdata/debug/usr/tests/atf/atf-c/detail/dynstr_test.debug tests-atf-debug debug,atf 14./usr/libdata/debug/usr/tests/atf/atf-c/detail/dynstr_test.debug tests-atf-debug debug,atf
@@ -2248,26 +2248,29 @@ @@ -2248,26 +2248,29 @@
2248./usr/tests/rump/rumpnet/Atffile tests-rump-tests atf 2248./usr/tests/rump/rumpnet/Atffile tests-rump-tests atf
2249./usr/tests/rump/rumpnet/t_shmif tests-rump-tests atf 2249./usr/tests/rump/rumpnet/t_shmif tests-rump-tests atf
2250./usr/tests/rump/rumpvfs tests-rump-tests 2250./usr/tests/rump/rumpvfs tests-rump-tests
2251./usr/tests/rump/rumpvfs/Atffile tests-rump-tests atf 2251./usr/tests/rump/rumpvfs/Atffile tests-rump-tests atf
2252./usr/tests/rump/rumpvfs/t_basic tests-rump-tests atf 2252./usr/tests/rump/rumpvfs/t_basic tests-rump-tests atf
2253./usr/tests/rump/rumpvfs/t_etfs tests-rump-tests atf 2253./usr/tests/rump/rumpvfs/t_etfs tests-rump-tests atf
2254./usr/tests/rump/rumpvfs/t_p2kifs tests-rump-tests atf 2254./usr/tests/rump/rumpvfs/t_p2kifs tests-rump-tests atf
2255./usr/tests/sbin tests-sbin-tests 2255./usr/tests/sbin tests-sbin-tests
2256./usr/tests/sbin/Atffile tests-sbin-tests atf 2256./usr/tests/sbin/Atffile tests-sbin-tests atf
2257./usr/tests/sbin/fsck_ffs tests-sbin-tests 2257./usr/tests/sbin/fsck_ffs tests-sbin-tests
2258./usr/tests/sbin/fsck_ffs/Atffile tests-sbin-tests atf 2258./usr/tests/sbin/fsck_ffs/Atffile tests-sbin-tests atf
2259./usr/tests/sbin/fsck_ffs/t_check_quotas tests-sbin-tests atf 2259./usr/tests/sbin/fsck_ffs/t_check_quotas tests-sbin-tests atf
2260./usr/tests/sbin/fsck_ffs/t_enable_quotas tests-sbin-tests atf 2260./usr/tests/sbin/fsck_ffs/t_enable_quotas tests-sbin-tests atf
 2261./usr/tests/sbin/ifconfig tests-sbin-tests
 2262./usr/tests/sbin/ifconfig/Atffile tests-sbin-tests atf
 2263./usr/tests/sbin/ifconfig/t_nonexistent tests-sbin-tests atf
2261./usr/tests/sbin/newfs tests-sbin-tests 2264./usr/tests/sbin/newfs tests-sbin-tests
2262./usr/tests/sbin/newfs/Atffile tests-sbin-tests atf 2265./usr/tests/sbin/newfs/Atffile tests-sbin-tests atf
2263./usr/tests/sbin/newfs/t_enable_quotas tests-sbin-tests atf 2266./usr/tests/sbin/newfs/t_enable_quotas tests-sbin-tests atf
2264./usr/tests/sbin/resize_ffs tests-sbin-tests 2267./usr/tests/sbin/resize_ffs tests-sbin-tests
2265./usr/tests/sbin/resize_ffs/Atffile tests-sbin-tests atf 2268./usr/tests/sbin/resize_ffs/Atffile tests-sbin-tests atf
2266./usr/tests/sbin/resize_ffs/t_grow tests-sbin-tests atf 2269./usr/tests/sbin/resize_ffs/t_grow tests-sbin-tests atf
2267./usr/tests/sbin/resize_ffs/t_grow_swapped tests-sbin-tests atf 2270./usr/tests/sbin/resize_ffs/t_grow_swapped tests-sbin-tests atf
2268./usr/tests/sbin/resize_ffs/t_resize_ffs tests-obsolete obsolete 2271./usr/tests/sbin/resize_ffs/t_resize_ffs tests-obsolete obsolete
2269./usr/tests/sbin/resize_ffs/t_shrink tests-sbin-tests atf 2272./usr/tests/sbin/resize_ffs/t_shrink tests-sbin-tests atf
2270./usr/tests/sbin/resize_ffs/t_shrink_swapped tests-sbin-tests atf 2273./usr/tests/sbin/resize_ffs/t_shrink_swapped tests-sbin-tests atf
2271./usr/tests/sbin/resize_ffs/testdata.md5 tests-sbin-tests atf 2274./usr/tests/sbin/resize_ffs/testdata.md5 tests-sbin-tests atf
2272./usr/tests/sbin/resize_ffs/testdata.tar.gz.base64 tests-sbin-tests atf 2275./usr/tests/sbin/resize_ffs/testdata.tar.gz.base64 tests-sbin-tests atf
2273./usr/tests/sys tests-sys-tests 2276./usr/tests/sys tests-sys-tests

cvs diff -r1.41 -r1.42 src/etc/mtree/NetBSD.dist.tests (expand / switch to unified diff)

--- src/etc/mtree/NetBSD.dist.tests 2011/05/02 11:55:15 1.41
+++ src/etc/mtree/NetBSD.dist.tests 2011/05/03 06:13:06 1.42
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: NetBSD.dist.tests,v 1.41 2011/05/02 11:55:15 njoly Exp $ 1# $NetBSD: NetBSD.dist.tests,v 1.42 2011/05/03 06:13:06 jruoho Exp $
2 2
3./usr/libdata/debug/usr/tests 3./usr/libdata/debug/usr/tests
4./usr/libdata/debug/usr/tests/atf 4./usr/libdata/debug/usr/tests/atf
5./usr/libdata/debug/usr/tests/atf/atf-c 5./usr/libdata/debug/usr/tests/atf/atf-c
6./usr/libdata/debug/usr/tests/atf/atf-c/detail 6./usr/libdata/debug/usr/tests/atf/atf-c/detail
7./usr/libdata/debug/usr/tests/atf/atf-c++ 7./usr/libdata/debug/usr/tests/atf/atf-c++
8./usr/libdata/debug/usr/tests/atf/atf-c++/detail 8./usr/libdata/debug/usr/tests/atf/atf-c++/detail
9./usr/libdata/debug/usr/tests/atf/atf-report 9./usr/libdata/debug/usr/tests/atf/atf-report
10./usr/libdata/debug/usr/tests/atf/atf-run 10./usr/libdata/debug/usr/tests/atf/atf-run
11./usr/libdata/debug/usr/tests/atf/formats 11./usr/libdata/debug/usr/tests/atf/formats
12./usr/libdata/debug/usr/tests/atf/test-programs 12./usr/libdata/debug/usr/tests/atf/test-programs
13./usr/libdata/debug/usr/tests/crypto 13./usr/libdata/debug/usr/tests/crypto
14./usr/libdata/debug/usr/tests/crypto/libcrypto 14./usr/libdata/debug/usr/tests/crypto/libcrypto
@@ -218,26 +218,27 @@ @@ -218,26 +218,27 @@
218./usr/tests/net/if_loop 218./usr/tests/net/if_loop
219./usr/tests/net/net 219./usr/tests/net/net
220./usr/tests/net/route 220./usr/tests/net/route
221./usr/tests/net/sys 221./usr/tests/net/sys
222./usr/tests/rump 222./usr/tests/rump
223./usr/tests/rump/modautoload 223./usr/tests/rump/modautoload
224./usr/tests/rump/rumpkern 224./usr/tests/rump/rumpkern
225./usr/tests/rump/rumpkern/h_client 225./usr/tests/rump/rumpkern/h_client
226./usr/tests/rump/rumpkern/h_server 226./usr/tests/rump/rumpkern/h_server
227./usr/tests/rump/rumpnet 227./usr/tests/rump/rumpnet
228./usr/tests/rump/rumpvfs 228./usr/tests/rump/rumpvfs
229./usr/tests/sbin 229./usr/tests/sbin
230./usr/tests/sbin/fsck_ffs 230./usr/tests/sbin/fsck_ffs
 231./usr/tests/sbin/ifconfig
231./usr/tests/sbin/newfs 232./usr/tests/sbin/newfs
232./usr/tests/sbin/resize_ffs 233./usr/tests/sbin/resize_ffs
233./usr/tests/sys 234./usr/tests/sys
234./usr/tests/sys/rc 235./usr/tests/sys/rc
235./usr/tests/syscall 236./usr/tests/syscall
236./usr/tests/toolchain 237./usr/tests/toolchain
237./usr/tests/toolchain/cc 238./usr/tests/toolchain/cc
238./usr/tests/usr.bin 239./usr/tests/usr.bin
239./usr/tests/usr.bin/rump_server 240./usr/tests/usr.bin/rump_server
240./usr/tests/usr.bin/shmif_dumpbus 241./usr/tests/usr.bin/shmif_dumpbus
241./usr/tests/usr.sbin 242./usr/tests/usr.sbin
242./usr/tests/usr.sbin/traceroute 243./usr/tests/usr.sbin/traceroute
243./usr/tests/util 244./usr/tests/util

cvs diff -r1.2 -r1.3 src/tests/sbin/Makefile (expand / switch to unified diff)

--- src/tests/sbin/Makefile 2011/03/06 17:08:41 1.2
+++ src/tests/sbin/Makefile 2011/05/03 06:13:06 1.3
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1# $NetBSD: Makefile,v 1.2 2011/03/06 17:08:41 bouyer Exp $ 1# $NetBSD: Makefile,v 1.3 2011/05/03 06:13:06 jruoho Exp $
2# 2#
3 3
4.include <bsd.own.mk> 4.include <bsd.own.mk>
5 5
6TESTSDIR= ${TESTSBASE}/sbin 6TESTSDIR= ${TESTSBASE}/sbin
7 7
8TESTS_SUBDIRS+= fsck_ffs newfs resize_ffs 8TESTS_SUBDIRS+= fsck_ffs ifconfig newfs resize_ffs
9 9
10.include <bsd.test.mk> 10.include <bsd.test.mk>

File Added: src/tests/sbin/ifconfig/Makefile
# $NetBSD: Makefile,v 1.1 2011/05/03 06:13:06 jruoho Exp $

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/sbin/ifconfig

TESTS_SH=	t_nonexistent

.include <bsd.test.mk>

File Added: src/tests/sbin/ifconfig/t_nonexistent.sh
#! /usr/bin/atf-sh
#
# $NetBSD: t_nonexistent.sh,v 1.1 2011/05/03 06:13:06 jruoho Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jukka Ruohonen.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#

atf_test_case nonexistent
nonexistent_head() {
	atf_set "descr" "Check ifconfig(8) with nonexistent interface"
}

nonexistent_body() {

	atf_expect_fail "PR bin/43141"

	atf_check -s not-exit:0 ifconfig nonexistent0 1.2.3.4/24
}

atf_init_test_cases() {
	atf_add_test_case nonexistent
}