atf-0.9 introduces an use.fs test-case property to allow tests to write to
their work directory. The purpose is to be able to know which tests intend to touch the file system and to allow a minor optimization in atf-run. Define use.fs=true for all those tests requiring it. (This highlights that some tests currently require modifying the file system but conceptually they shouldn't be... which leaves room for further improvements/cleanups later :-)
This commit is contained in:
parent
6bf7fc8927
commit
6b84fb92ac
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_libcrypto.in,v 1.2 2009/02/13 22:01:49 jmmv Exp $
|
||||
# $NetBSD: t_libcrypto.in,v 1.3 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -115,6 +115,7 @@ atf_test_case conf
|
||||
conf_head()
|
||||
{
|
||||
atf_set "descr" "Checks configuration modules"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
conf_body()
|
||||
{
|
||||
@ -139,6 +140,7 @@ atf_test_case threads
|
||||
threads_head()
|
||||
{
|
||||
atf_set "descr" "Checks threading"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
threads_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: snapshot.c,v 1.3 2010/05/31 23:44:54 pooka Exp $ */
|
||||
/* $NetBSD: snapshot.c,v 1.4 2010/06/04 08:39:40 jmmv Exp $ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
@ -18,6 +18,7 @@ ATF_TC_HEAD(snapshot, tc)
|
||||
{
|
||||
|
||||
atf_tc_set_md_var(tc, "descr", "basic snapshot features");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_fifos.c,v 1.3 2010/05/31 23:44:54 pooka Exp $ */
|
||||
/* $NetBSD: t_fifos.c,v 1.4 2010/06/04 08:39:40 jmmv Exp $ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
@ -24,6 +24,7 @@ ATF_TC_HEAD(fifos, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "test fifo support in ffs");
|
||||
atf_tc_set_md_var(tc, "timeout", "5");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
|
||||
#define teststr1 "raving & drooling"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_renamerace.c,v 1.10 2010/05/30 05:35:48 dholland Exp $ */
|
||||
/* $NetBSD: t_renamerace.c,v 1.11 2010/06/04 08:39:40 jmmv Exp $ */
|
||||
|
||||
/*
|
||||
* Modified for rump and atf from a program supplied
|
||||
@ -32,6 +32,7 @@ ATF_TC_HEAD(renamerace, tc)
|
||||
"unlinked mid-operation, kern/40948");
|
||||
/* XXX: test hangs in qemu for unknown reasons */
|
||||
atf_tc_set_md_var(tc, "timeout", "20");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
|
||||
volatile int quit;
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_psshfs.sh,v 1.5 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_psshfs.sh,v 1.6 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -129,6 +129,7 @@ atf_test_case inode_nos
|
||||
inode_nos_head() {
|
||||
atf_set "descr" "Checks that different files get different inode" \
|
||||
"numbers"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
inode_nos_body() {
|
||||
require_puffs
|
||||
@ -171,6 +172,7 @@ inode_nos_cleanup() {
|
||||
atf_test_case pwd
|
||||
pwd_head() {
|
||||
atf_set "descr" "Checks that pwd works correctly"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
pwd_body() {
|
||||
require_puffs
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_create.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_create.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ atf_test_case create
|
||||
create_head() {
|
||||
atf_set "descr" "Verifies that files can be created"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
create_body() {
|
||||
test_mount
|
||||
@ -50,6 +51,7 @@ attrs_head() {
|
||||
"attributes"
|
||||
atf_set "require.config" "unprivileged-user"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
attrs_body() {
|
||||
# Allow the unprivileged user to access the work directory.
|
||||
@ -102,6 +104,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Verifies that creating a file raises the correct" \
|
||||
"kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_devices.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_devices.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -29,6 +29,7 @@ atf_test_case basic
|
||||
basic_head() {
|
||||
atf_set "descr" "Tests that special devices work"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_dots.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_dots.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -30,6 +30,7 @@ topdir_head() {
|
||||
atf_set "descr" "Verifies that looking up '.' and '..' in" \
|
||||
"top-level directories works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
topdir_body() {
|
||||
test_mount
|
||||
@ -46,6 +47,7 @@ nesteddir_head() {
|
||||
atf_set "descr" "Verifies that looking up '.' and '..' in" \
|
||||
"top-level directories works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
nesteddir_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_exec.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_exec.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -31,6 +31,7 @@ basic_head() {
|
||||
"within the file system (i.e., whether getpages" \
|
||||
"works)"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_id_gen.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_id_gen.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -30,6 +30,7 @@ main_head() {
|
||||
atf_set "descr" "Verifies that node identifiers and generation" \
|
||||
"numbers are assigned correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
main_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_link.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_link.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ basic_head() {
|
||||
atf_set "descr" "Verifies that the link operation works on files" \
|
||||
"at the top directory"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
@ -68,6 +69,7 @@ subdirs_head() {
|
||||
atf_set "descr" "Verifies that the link operation works if used" \
|
||||
"in subdirectories"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
subdirs_body() {
|
||||
test_mount
|
||||
@ -98,6 +100,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Verifies that creating a link raises the correct" \
|
||||
"kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_mkdir.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_mkdir.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -35,6 +35,7 @@ single_head() {
|
||||
atf_set "descr" "Creates a single directory and checks the" \
|
||||
"mount point's hard link count"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
single_body() {
|
||||
test_mount
|
||||
@ -54,6 +55,7 @@ many_head() {
|
||||
atf_set "descr" "Creates multiple directories and checks the" \
|
||||
"mount point's hard link count"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
many_body() {
|
||||
test_mount
|
||||
@ -73,6 +75,7 @@ atf_test_case nested
|
||||
nested_head() {
|
||||
atf_set "descr" "Checks if nested directories can be created"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
nested_body() {
|
||||
test_mount
|
||||
@ -90,6 +93,7 @@ attrs_head() {
|
||||
"attributes (owner and group)"
|
||||
atf_set "require.config" "unprivileged-user"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
attrs_body() {
|
||||
# Allow the unprivileged user to access the work directory.
|
||||
@ -129,6 +133,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Creates a directory and checks the kqueue events" \
|
||||
"raised"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_mknod.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_mknod.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ atf_test_case block
|
||||
block_head() {
|
||||
atf_set "descr" "Tests that block devices can be created"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
block_body() {
|
||||
test_mount
|
||||
@ -51,6 +52,7 @@ block_kqueue_head() {
|
||||
atf_set "descr" "Tests that creating a block device raises the" \
|
||||
"appropriate kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
block_kqueue_body() {
|
||||
test_mount
|
||||
@ -67,6 +69,7 @@ atf_test_case char
|
||||
char_head() {
|
||||
atf_set "descr" "Tests that character devices can be created"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
char_body() {
|
||||
test_mount
|
||||
@ -85,6 +88,7 @@ char_kqueue_head() {
|
||||
atf_set "descr" "Tests that creating a character device raises the" \
|
||||
"appropriate kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
char_kqueue_body() {
|
||||
test_mount
|
||||
@ -101,6 +105,7 @@ atf_test_case pipe
|
||||
pipe_head() {
|
||||
atf_set "descr" "Tests that named pipes can be created"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
pipe_body() {
|
||||
test_mount
|
||||
@ -118,6 +123,7 @@ pipe_kqueue_head() {
|
||||
atf_set "descr" "Tests that creating a named pipe raises the" \
|
||||
"appropriate kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
pipe_kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_mount.sh,v 1.4 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_mount.sh,v 1.5 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -35,6 +35,7 @@ atf_test_case plain
|
||||
plain_head() {
|
||||
atf_set "descr" "Tests a mount and unmount without any options"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
plain_body() {
|
||||
test_mount
|
||||
@ -45,6 +46,7 @@ atf_test_case links
|
||||
links_head() {
|
||||
atf_set "descr" "Tests that the mount point has two hard links"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
links_body() {
|
||||
test_mount
|
||||
@ -58,6 +60,7 @@ atf_test_case options
|
||||
options_head() {
|
||||
atf_set "descr" "Tests the read-only mount option"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
options_body() {
|
||||
test_mount -o ro
|
||||
@ -71,6 +74,7 @@ attrs_head() {
|
||||
atf_set "descr" "Tests that root directory attributes are set" \
|
||||
"correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
attrs_body() {
|
||||
test_mount -o -u1000 -o -g100 -o -m755
|
||||
@ -86,6 +90,7 @@ negative_head() {
|
||||
atf_set "descr" "Tests that negative values passed to to -s are" \
|
||||
"handled correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
negative_body() {
|
||||
mkdir tmp
|
||||
@ -98,6 +103,7 @@ large_head() {
|
||||
atf_set "descr" "Tests that extremely long values passed to -s" \
|
||||
"are handled correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
large_body() {
|
||||
test_mount -o -s9223372036854775807
|
||||
@ -116,6 +122,7 @@ mntpt_head() {
|
||||
atf_set "descr" "Tests that the error messages printed when the" \
|
||||
"mount point is invalid do not show the source" \
|
||||
"unused parameter"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
mntpt_body() {
|
||||
mount_tmpfs unused $(pwd)/mnt >out 2>&1
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_pipes.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_pipes.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -29,6 +29,7 @@ atf_test_case basic
|
||||
basic_head() {
|
||||
atf_set "descr" "Verifies that pipes work"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_read_write.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_read_write.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ atf_test_case basic
|
||||
basic_head() {
|
||||
atf_set "descr" "Checks that file removal works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
@ -60,6 +61,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Checks that writing to a file raises the" \
|
||||
"appropriate kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_readdir.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_readdir.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ dots_head() {
|
||||
atf_set "descr" "Verifies that readdir returns the '.' and '..'" \
|
||||
"entries"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dots_body() {
|
||||
test_mount
|
||||
@ -50,6 +51,7 @@ types_head() {
|
||||
atf_set "descr" "Verifies that readdir works for all different" \
|
||||
"file types"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
types_body() {
|
||||
test_mount
|
||||
@ -74,6 +76,7 @@ caching_head() {
|
||||
atf_set "descr" "Catch a bug caused by incorrect invalidation of" \
|
||||
"readdir caching variables"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
caching_body() {
|
||||
test_mount
|
||||
@ -90,6 +93,7 @@ atf_test_case many
|
||||
many_head() {
|
||||
atf_set "descr" "Verifies that readdir works with many files"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
many_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_remove.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_remove.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ atf_test_case single
|
||||
single_head() {
|
||||
atf_set "descr" "Checks that file removal works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
single_body() {
|
||||
test_mount
|
||||
@ -51,6 +52,7 @@ uchg_head() {
|
||||
atf_set "descr" "Checks that files with the uchg flag set cannot" \
|
||||
"be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
uchg_body() {
|
||||
test_mount
|
||||
@ -69,6 +71,7 @@ atf_test_case dot
|
||||
dot_head() {
|
||||
atf_set "descr" "Checks that '.' cannot be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dot_body() {
|
||||
test_mount
|
||||
@ -85,6 +88,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Removes a file and checks the kqueue events" \
|
||||
"raised"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_rename.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_rename.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ atf_test_case dots
|
||||
dots_head() {
|
||||
atf_set "descr" "Tests that '.' and '..' cannot be renamed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dots_body() {
|
||||
test_mount
|
||||
@ -50,6 +51,7 @@ atf_test_case crossdev
|
||||
crossdev_head() {
|
||||
atf_set "descr" "Tests that cross-device renames do not work"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
crossdev_body() {
|
||||
test_mount
|
||||
@ -68,6 +70,7 @@ atf_test_case basic
|
||||
basic_head() {
|
||||
atf_set "descr" "Tests that basic renames work"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
@ -86,6 +89,7 @@ dotdot_head() {
|
||||
atf_set "descr" "Tests that the '..' entry is properly updated" \
|
||||
"during moves"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dotdot_body() {
|
||||
test_mount
|
||||
@ -131,6 +135,7 @@ dir_to_emptydir_head() {
|
||||
atf_set "descr" "Tests that renaming a directory to override an" \
|
||||
"empty directory works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dir_to_emptydir_body() {
|
||||
test_mount
|
||||
@ -154,6 +159,7 @@ dir_to_fulldir_head() {
|
||||
atf_set "descr" "Tests that renaming a directory to override a" \
|
||||
"non-empty directory fails"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dir_to_fulldir_body() {
|
||||
test_mount
|
||||
@ -182,6 +188,7 @@ dir_to_file_head() {
|
||||
atf_set "descr" "Tests that renaming a directory to override a" \
|
||||
"file fails"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dir_to_file_body() {
|
||||
test_mount
|
||||
@ -204,6 +211,7 @@ file_to_dir_head() {
|
||||
atf_set "descr" "Tests that renaming a file to override a" \
|
||||
"directory fails"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
file_to_dir_body() {
|
||||
test_mount
|
||||
@ -226,6 +234,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Tests that moving and renaming files raise the" \
|
||||
"correct kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_rmdir.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_rmdir.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ atf_test_case mntpt
|
||||
mntpt_head() {
|
||||
atf_set "descr" "Checks that the mount point cannot be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
mntpt_body() {
|
||||
test_mount
|
||||
@ -48,6 +49,7 @@ non_existent_head() {
|
||||
atf_set "descr" "Checks that non-existent directories cannot" \
|
||||
"be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
non_existent_body() {
|
||||
test_mount
|
||||
@ -61,6 +63,7 @@ atf_test_case single
|
||||
single_head() {
|
||||
atf_set "descr" "Checks that removing a single directory works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
single_body() {
|
||||
test_mount
|
||||
@ -81,6 +84,7 @@ atf_test_case nested
|
||||
nested_head() {
|
||||
atf_set "descr" "Checks that removing nested directories works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
nested_body() {
|
||||
test_mount
|
||||
@ -97,6 +101,7 @@ atf_test_case dots
|
||||
dots_head() {
|
||||
atf_set "descr" "Checks that '.' and '..' cannot be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dots_body() {
|
||||
test_mount
|
||||
@ -113,6 +118,7 @@ atf_test_case non_empty
|
||||
non_empty_head() {
|
||||
atf_set "descr" "Checks that non-empty directories cannot be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
non_empty_body() {
|
||||
test_mount
|
||||
@ -132,6 +138,7 @@ atf_test_case links
|
||||
links_head() {
|
||||
atf_set "descr" "Checks the root directory's links after removals"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
links_body() {
|
||||
test_mount
|
||||
@ -154,6 +161,7 @@ atf_test_case curdir
|
||||
curdir_head() {
|
||||
atf_set "descr" "Checks that the current directory cannot be removed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
curdir_body() {
|
||||
test_mount
|
||||
@ -173,6 +181,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Checks that removing a directory raises the" \
|
||||
"correct kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_setattr.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_setattr.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ atf_test_case chown
|
||||
chown_head() {
|
||||
atf_set "descr" "Tests that the file owner can be changed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chown_body() {
|
||||
test_mount
|
||||
@ -53,6 +54,7 @@ chown_kqueue_head() {
|
||||
atf_set "descr" "Tests that changing the file owner raises" \
|
||||
"NOTE_ATTRIB on it"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chown_kqueue_body() {
|
||||
test_mount
|
||||
@ -68,6 +70,7 @@ atf_test_case chgrp
|
||||
chgrp_head() {
|
||||
atf_set "descr" "Tests that the file group can be changed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chgrp_body() {
|
||||
test_mount
|
||||
@ -87,6 +90,7 @@ chgrp_kqueue_head() {
|
||||
atf_set "descr" "Tests that changing the file group raises" \
|
||||
"NOTE_ATTRIB on it"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chgrp_kqueue_body() {
|
||||
test_mount
|
||||
@ -103,6 +107,7 @@ chowngrp_head() {
|
||||
atf_set "descr" "Tests that the file owner and group can be" \
|
||||
"changed at once"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chowngrp_body() {
|
||||
test_mount
|
||||
@ -121,6 +126,7 @@ chowngrp_kqueue_head() {
|
||||
atf_set "descr" "Tests that changing the file owner and group" \
|
||||
"raises NOTE_ATTRIB on it"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chowngrp_kqueue_body() {
|
||||
test_mount
|
||||
@ -136,6 +142,7 @@ atf_test_case chmod
|
||||
chmod_head() {
|
||||
atf_set "descr" "Tests that the file mode can be changed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chmod_body() {
|
||||
test_mount
|
||||
@ -153,6 +160,7 @@ chmod_kqueue_head() {
|
||||
atf_set "descr" "Tests that changing the file mode raises" \
|
||||
"NOTE_ATTRIB on it"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chmod_kqueue_body() {
|
||||
test_mount
|
||||
@ -168,6 +176,7 @@ atf_test_case chtimes
|
||||
chtimes_head() {
|
||||
atf_set "descr" "Tests that file times can be changed"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chtimes_body() {
|
||||
test_mount
|
||||
@ -188,6 +197,7 @@ chtimes_kqueue_head() {
|
||||
atf_set "descr" "Tests that changing the file times raises" \
|
||||
"NOTE_ATTRIB on it"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
chtimes_kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_sizes.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_sizes.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ atf_test_case small
|
||||
small_head() {
|
||||
atf_set "descr" "Checks the status after creating a small file"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
small_body() {
|
||||
test_mount -o -s10M
|
||||
@ -50,6 +51,7 @@ atf_test_case big
|
||||
big_head() {
|
||||
atf_set "descr" "Checks the status after creating a big file"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
big_body() {
|
||||
test_mount -o -s10M
|
||||
@ -80,6 +82,7 @@ overflow_head() {
|
||||
atf_set "descr" "Checks the status after creating a big file that" \
|
||||
"overflows the file system limits"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overflow_body() {
|
||||
test_mount -o -s10M
|
||||
@ -104,6 +107,7 @@ overwrite_head() {
|
||||
atf_set "descr" "Checks that writing to the middle of a file" \
|
||||
"does not change its size"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overwrite_body() {
|
||||
test_mount -o -s10M
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_sockets.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_sockets.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -30,6 +30,7 @@ basic_head() {
|
||||
atf_set "descr" "Verifies that sockets can be created using" \
|
||||
"socket/bind"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_statvfs.sh,v 1.2 2008/04/30 13:11:00 martin Exp $
|
||||
# $NetBSD: t_statvfs.sh,v 1.3 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ atf_test_case values
|
||||
values_head() {
|
||||
atf_set "descr" "Tests that statvfs(2) returns correct values"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
values_body() {
|
||||
test_mount -o -s10M
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_symlink.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_symlink.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ atf_test_case file
|
||||
file_head() {
|
||||
atf_set "descr" "Tests that symlinks to files work"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
file_body() {
|
||||
test_mount
|
||||
@ -54,6 +55,7 @@ exec_head() {
|
||||
atf_set "descr" "Tests symlinking to a known system binary and" \
|
||||
"executing it through the symlink"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
exec_body() {
|
||||
test_mount
|
||||
@ -70,6 +72,7 @@ atf_test_case dir
|
||||
dir_head() {
|
||||
atf_set "descr" "Tests that symlinks to directories work"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dir_body() {
|
||||
test_mount
|
||||
@ -90,6 +93,7 @@ kqueue_head() {
|
||||
atf_set "descr" "Tests that creating a symlink raises the" \
|
||||
"appropriate kqueue events"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
kqueue_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_times.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_times.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ empty_head() {
|
||||
atf_set "descr" "Tests that creating an empty file and later" \
|
||||
"manipulating it updates times correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
empty_body() {
|
||||
test_mount
|
||||
@ -66,6 +67,7 @@ non_empty_head() {
|
||||
atf_set "descr" "Tests that creating a non-empty file and later" \
|
||||
"manipulating it updates times correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
non_empty_body() {
|
||||
test_mount
|
||||
@ -88,6 +90,7 @@ link_head() {
|
||||
atf_set "descr" "Tests that linking to an existing file updates" \
|
||||
"times correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
link_body() {
|
||||
test_mount
|
||||
@ -110,6 +113,7 @@ rename_head() {
|
||||
atf_set "descr" "Tests that renaming an existing file updates" \
|
||||
"times correctly"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
rename_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_trail_slash.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_trail_slash.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -31,6 +31,7 @@ main_head() {
|
||||
"in directory names and that they do not cause" \
|
||||
"crashes"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
main_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_truncate.sh,v 1.2 2008/04/30 13:11:00 martin Exp $
|
||||
# $NetBSD: t_truncate.sh,v 1.3 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -29,6 +29,7 @@ atf_test_case basic
|
||||
basic_head() {
|
||||
atf_set "descr" "Verifies that the truncate operation works"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_vnd.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_vnd.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -32,6 +32,7 @@ atf_test_case basic
|
||||
basic_head() {
|
||||
atf_set "descr" "Verifies that vnd works with files stored in tmpfs"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body() {
|
||||
test_mount
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_vnode_leak.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_vnode_leak.sh,v 1.4 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -33,6 +33,7 @@ main_head() {
|
||||
"have to be recycled, which is what the reclaim" \
|
||||
"operation does."
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
main_body() {
|
||||
echo "Lowering kern.maxvnodes to 2000"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_basic.c,v 1.3 2010/05/31 23:44:54 pooka Exp $ */
|
||||
/* $NetBSD: t_basic.c,v 1.4 2010/06/04 08:39:40 jmmv Exp $ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
@ -24,6 +24,7 @@ ATF_TC(basic);
|
||||
ATF_TC_HEAD(basic, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "basic union functionality: two views");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
|
||||
#define MSTR "magic bus"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_factor.sh,v 1.4 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_factor.sh,v 1.5 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ atf_test_case overflow
|
||||
overflow_head() {
|
||||
atf_set "descr" "Tests for overflow conditions"
|
||||
atf_set "require.progs" "factor"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overflow_body() {
|
||||
expect '8675309' '8675309: 8675309'
|
||||
@ -45,6 +46,7 @@ loop_head() {
|
||||
atf_set "descr" "Tests some cases that once locked the program" \
|
||||
"in an infinite loop"
|
||||
atf_set "require.progs" "factor"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
loop_body() {
|
||||
expect '99999999999991' '99999999999991: 7 13 769231 1428571'
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_ipf.awk,v 1.1 2009/02/20 21:42:59 jmmv Exp $
|
||||
# $NetBSD: t_ipf.awk,v 1.2 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -37,6 +37,7 @@ BEGIN {
|
||||
printf "%s_head()\n", $2;
|
||||
print "{"
|
||||
printf " atf_set \"descr\" \"%s\"\n", desc;
|
||||
printf " atf_set \"use.fs\" \"true\"\n", desc;
|
||||
print "}"
|
||||
printf "%s_body()\n", $2;
|
||||
print "{"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_fifo.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
|
||||
/* $NetBSD: t_fifo.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_fifo.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
|
||||
__RCSID("$NetBSD: t_fifo.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $");
|
||||
|
||||
#include <sys/event.h>
|
||||
#include <sys/stat.h>
|
||||
@ -54,6 +54,7 @@ ATF_TC(fifo);
|
||||
ATF_TC_HEAD(fifo, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "Checks EVFILT_READ on fifo");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
ATF_TC_BODY(fifo, tc)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_file.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
|
||||
/* $NetBSD: t_file.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
|
||||
@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_file.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
|
||||
__RCSID("$NetBSD: t_file.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/event.h>
|
||||
@ -81,6 +81,7 @@ ATF_TC(file);
|
||||
ATF_TC_HEAD(file, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "Checks EVFILT_READ on regular file");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
ATF_TC_BODY(file, tc)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_file2.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
|
||||
/* $NetBSD: t_file2.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
|
||||
@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_file2.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
|
||||
__RCSID("$NetBSD: t_file2.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $");
|
||||
|
||||
#include <sys/event.h>
|
||||
|
||||
@ -50,6 +50,7 @@ ATF_TC_HEAD(file2, tc)
|
||||
"Checks EVFILT_READ for regular files. This test used to "
|
||||
"trigger deadlock caused by problem fixed in revision 1.79.2.10 "
|
||||
"of sys/kern/kern_descrip.c");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
ATF_TC_BODY(file2, tc)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_fifo.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
|
||||
/* $NetBSD: t_fifo.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
|
||||
@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_fifo.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
|
||||
__RCSID("$NetBSD: t_fifo.c,v 1.2 2010/06/04 08:39:41 jmmv Exp $");
|
||||
|
||||
#include <sys/event.h>
|
||||
#include <sys/stat.h>
|
||||
@ -54,6 +54,7 @@ ATF_TC(fifo);
|
||||
ATF_TC_HEAD(fifo, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "Checks EVFILT_WRITE for fifo");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
ATF_TC_BODY(fifo, tc)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_mkdir.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
|
||||
/* $NetBSD: t_mkdir.c,v 1.2 2010/06/04 08:39:40 jmmv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_mkdir.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
|
||||
__RCSID("$NetBSD: t_mkdir.c,v 1.2 2010/06/04 08:39:40 jmmv Exp $");
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
@ -47,6 +47,7 @@ ATF_TC(mkdir);
|
||||
ATF_TC_HEAD(mkdir, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "Checks mkdir(2)");
|
||||
atf_tc_set_md_var(tc, "use.fs", "true");
|
||||
}
|
||||
ATF_TC_BODY(mkdir, tc)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_umount.sh,v 1.1 2009/02/20 21:39:57 jmmv Exp $
|
||||
# $NetBSD: t_umount.sh,v 1.2 2010/06/04 08:39:40 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -38,6 +38,7 @@ umount_head()
|
||||
{
|
||||
atf_set "descr" "Checks forced unmounting"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
umount_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_modload.sh,v 1.5 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_modload.sh,v 1.6 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ atf_test_case plain
|
||||
plain_head() {
|
||||
atf_set "descr" "Test load without arguments"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
plain_body() {
|
||||
cat >experr <<EOF
|
||||
@ -56,6 +57,7 @@ atf_test_case bflag
|
||||
bflag_head() {
|
||||
atf_set "descr" "Test the -b flag"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
bflag_body() {
|
||||
echo "Checking error conditions"
|
||||
@ -96,6 +98,7 @@ atf_test_case iflag
|
||||
iflag_head() {
|
||||
atf_set "descr" "Test the -i flag"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
iflag_body() {
|
||||
echo "Checking error conditions"
|
||||
@ -139,6 +142,7 @@ atf_test_case sflag
|
||||
sflag_head() {
|
||||
atf_set "descr" "Test the -s flag"
|
||||
atf_set "require.user" "root"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
sflag_body() {
|
||||
echo "Checking error conditions"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_rc_d_cli.sh,v 1.2 2010/05/04 09:33:57 jmmv Exp $
|
||||
# $NetBSD: t_rc_d_cli.sh,v 1.3 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2010 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -160,6 +160,7 @@ atf_test_case overriden_start_no_args
|
||||
overriden_start_no_args_head() {
|
||||
atf_set "descr" "Tests that running a custom 'start' without" \
|
||||
"arguments does not pass any parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_start_no_args_body() {
|
||||
do_overriden_no_args start
|
||||
@ -169,6 +170,7 @@ atf_test_case overriden_start_with_args
|
||||
overriden_start_with_args_head() {
|
||||
atf_set "descr" "Tests that running a custom 'start' with" \
|
||||
"arguments passes those arguments as parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_start_with_args_body() {
|
||||
do_overriden_with_args start
|
||||
@ -178,6 +180,7 @@ atf_test_case overriden_stop_no_args
|
||||
overriden_stop_no_args_head() {
|
||||
atf_set "descr" "Tests that running a custom 'stop' without" \
|
||||
"arguments does not pass any parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_stop_no_args_body() {
|
||||
do_overriden_no_args stop
|
||||
@ -187,6 +190,7 @@ atf_test_case overriden_stop_with_args
|
||||
overriden_stop_with_args_head() {
|
||||
atf_set "descr" "Tests that running a custom 'stop' with" \
|
||||
"arguments passes those arguments as parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_stop_with_args_body() {
|
||||
do_overriden_with_args stop
|
||||
@ -196,6 +200,7 @@ atf_test_case overriden_restart_no_args
|
||||
overriden_restart_no_args_head() {
|
||||
atf_set "descr" "Tests that running a custom 'restart' without" \
|
||||
"arguments does not pass any parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_restart_no_args_body() {
|
||||
do_overriden_no_args restart
|
||||
@ -205,6 +210,7 @@ atf_test_case overriden_restart_with_args
|
||||
overriden_restart_with_args_head() {
|
||||
atf_set "descr" "Tests that running a custom 'restart' with" \
|
||||
"arguments passes those arguments as parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_restart_with_args_body() {
|
||||
do_overriden_with_args restart
|
||||
@ -214,6 +220,7 @@ atf_test_case overriden_custom_no_args
|
||||
overriden_custom_no_args_head() {
|
||||
atf_set "descr" "Tests that running a custom command without" \
|
||||
"arguments does not pass any parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_custom_no_args_body() {
|
||||
do_overriden_no_args custom
|
||||
@ -223,6 +230,7 @@ atf_test_case overriden_custom_with_args
|
||||
overriden_custom_with_args_head() {
|
||||
atf_set "descr" "Tests that running a custom command with" \
|
||||
"arguments passes those arguments as parameters to the command"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
overriden_custom_with_args_body() {
|
||||
do_overriden_with_args custom
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_awk.sh,v 1.1 2009/02/13 05:19:51 jmmv Exp $
|
||||
# $NetBSD: t_awk.sh,v 1.2 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -37,6 +37,7 @@ atf_test_case big_regexp
|
||||
big_regexp_head()
|
||||
{
|
||||
atf_set "descr" "Checks matching long regular expressions (PR/33392)"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
big_regexp_body()
|
||||
{
|
||||
@ -48,6 +49,7 @@ end_head()
|
||||
{
|
||||
atf_set "descr" "Checks that the last line of the input" \
|
||||
"is available under END pattern (PR/29659)"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
end_body()
|
||||
{
|
||||
@ -59,6 +61,7 @@ atf_test_case string1
|
||||
string1_head()
|
||||
{
|
||||
atf_set "descr" "Checks escaping newlines in string literals"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
string1_body()
|
||||
{
|
||||
@ -73,6 +76,7 @@ multibyte_head()
|
||||
{
|
||||
atf_set "descr" "Checks multibyte charsets support" \
|
||||
"in tolower and toupper (PR/36394)"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
multibyte_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_config.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
|
||||
# $NetBSD: t_config.awk,v 1.2 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ BEGIN {
|
||||
printf "%s_head()\n", $3;
|
||||
print "{"
|
||||
printf " atf_set \"descr\" \"%s\"\n", $4;
|
||||
printf " atf_set \"use.fs\" \"true\"\n", $4;
|
||||
print "}"
|
||||
printf "%s_body()\n", $3;
|
||||
print "{"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_cut.sh,v 1.1 2009/02/13 05:19:51 jmmv Exp $
|
||||
# $NetBSD: t_cut.sh,v 1.2 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -47,6 +47,7 @@ atf_test_case basic
|
||||
basic_head()
|
||||
{
|
||||
atf_set "descr" "Checks basic functionality"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
basic_body()
|
||||
{
|
||||
@ -58,6 +59,7 @@ atf_test_case sflag
|
||||
sflag_head()
|
||||
{
|
||||
atf_set "descr" "Checks -s flag"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
sflag_body()
|
||||
{
|
||||
@ -69,6 +71,7 @@ atf_test_case dflag
|
||||
dflag_head()
|
||||
{
|
||||
atf_set "descr" "Checks -d flag"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dflag_body()
|
||||
{
|
||||
@ -80,6 +83,7 @@ atf_test_case dsflag
|
||||
dsflag_head()
|
||||
{
|
||||
atf_set "descr" "Checks -s and -d flags combined"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dsflag_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_df.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_df.sh,v 1.4 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -30,6 +30,7 @@ normal_head() {
|
||||
atf_set "descr" "Checks that the output of df without flags is" \
|
||||
"correct according to some already-known, sane" \
|
||||
"output"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
normal_body() {
|
||||
cat >expout <<EOF
|
||||
@ -88,6 +89,7 @@ hflag_head() {
|
||||
atf_set "descr" "Checks that the output of df is correct according" \
|
||||
"to some already-known, sane output when using the" \
|
||||
"human readable format"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
hflag_body() {
|
||||
cat >expout <<EOF
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_grep.sh,v 1.1 2009/02/13 05:19:52 jmmv Exp $
|
||||
# $NetBSD: t_grep.sh,v 1.2 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -51,6 +51,7 @@ atf_test_case recurse
|
||||
recurse_head()
|
||||
{
|
||||
atf_set "descr" "Checks recursive searching"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
recurse_body()
|
||||
{
|
||||
@ -65,6 +66,7 @@ atf_test_case recurse_symlink
|
||||
recurse_symlink_head()
|
||||
{
|
||||
atf_set "descr" "Checks symbolic link recursion"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
recurse_symlink_body()
|
||||
{
|
||||
@ -149,6 +151,7 @@ atf_test_case context
|
||||
context_head()
|
||||
{
|
||||
atf_set "descr" "Checks displaying context with -A, -B and -C flags"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
context_body()
|
||||
{
|
||||
@ -186,6 +189,7 @@ atf_test_case zgrep
|
||||
zgrep_head()
|
||||
{
|
||||
atf_set "descr" "Checks handling of gzipped files with zgrep"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
zgrep_body()
|
||||
{
|
||||
@ -210,6 +214,7 @@ atf_test_case context2
|
||||
context2_head()
|
||||
{
|
||||
atf_set "descr" "Checks displaying context with -z flag"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
context2_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_groups.sh,v 1.4 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_groups.sh,v 1.5 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -37,6 +37,7 @@ EOF
|
||||
atf_test_case correct
|
||||
correct_head() {
|
||||
atf_set "descr" "Checks that correct queries work"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
correct_body() {
|
||||
create_run_groups
|
||||
@ -54,6 +55,7 @@ correct_body() {
|
||||
atf_test_case syntax
|
||||
syntax_head() {
|
||||
atf_set "descr" "Checks the command's syntax"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
syntax_body() {
|
||||
create_run_groups
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_id.sh,v 1.4 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_id.sh,v 1.5 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -37,6 +37,7 @@ EOF
|
||||
atf_test_case default
|
||||
default_head() {
|
||||
atf_set "descr" "Checks that the output without options is correct"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
default_body() {
|
||||
create_run_id
|
||||
@ -66,6 +67,7 @@ atf_test_case primaries
|
||||
primaries_head() {
|
||||
atf_set "descr" "Checks that giving multiple primaries" \
|
||||
"simultaneously provides an error"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
primaries_body() {
|
||||
create_run_id
|
||||
@ -85,6 +87,7 @@ primaries_body() {
|
||||
atf_test_case Gflag
|
||||
Gflag_head() {
|
||||
atf_set "descr" "Checks that the -G primary flag works"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
Gflag_body() {
|
||||
create_run_id
|
||||
@ -117,6 +120,7 @@ Gflag_body() {
|
||||
atf_test_case gflag
|
||||
gflag_head() {
|
||||
atf_set "descr" "Checks that the -g primary flag works"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
gflag_body() {
|
||||
create_run_id
|
||||
@ -187,6 +191,7 @@ gflag_body() {
|
||||
atf_test_case pflag
|
||||
pflag_head() {
|
||||
atf_set "descr" "Checks that the -p primary flag works"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
pflag_body() {
|
||||
create_run_id
|
||||
@ -226,6 +231,7 @@ EOF
|
||||
atf_test_case uflag
|
||||
uflag_head() {
|
||||
atf_set "descr" "Checks that the -u primary flag works"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
uflag_body() {
|
||||
create_run_id
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_whoami.sh,v 1.4 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_whoami.sh,v 1.5 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -37,6 +37,7 @@ EOF
|
||||
atf_test_case correct
|
||||
correct_head() {
|
||||
atf_set "descr" "Checks that correct queries work"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
correct_body() {
|
||||
create_run_whoami
|
||||
@ -54,6 +55,7 @@ correct_body() {
|
||||
atf_test_case syntax
|
||||
syntax_head() {
|
||||
atf_set "descr" "Checks the command's syntax"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
syntax_body() {
|
||||
create_run_whoami
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_m4.sh,v 1.1 2009/02/13 05:19:52 jmmv Exp $
|
||||
# $NetBSD: t_m4.sh,v 1.2 2010/06/04 08:39:42 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -29,6 +29,7 @@ atf_test_case eof
|
||||
eof_head()
|
||||
{
|
||||
atf_set "descr" "Checks that m4 doesn't confuse 0xFF with EOF"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
eof_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_make.awk,v 1.1 2009/02/13 05:19:52 jmmv Exp $
|
||||
# $NetBSD: t_make.awk,v 1.2 2010/06/04 08:39:42 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -34,6 +34,7 @@ BEGIN {
|
||||
printf "%s_head()\n", $2;
|
||||
print "{"
|
||||
printf " atf_set \"descr\" \"%s\"\n", $3;
|
||||
printf " atf_set \"use.fs\" \"true\"\n", $3;
|
||||
print "}"
|
||||
printf "%s_body()\n", $2;
|
||||
print "{"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_mtree.sh,v 1.4 2009/09/19 20:37:05 apb Exp $
|
||||
# $NetBSD: t_mtree.sh,v 1.5 2010/06/04 08:39:42 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -46,6 +46,7 @@ atf_test_case create
|
||||
create_head()
|
||||
{
|
||||
atf_set "descr" "Create a specfile describing a directory tree"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
create_setup()
|
||||
{
|
||||
@ -87,6 +88,7 @@ atf_test_case check
|
||||
check_head()
|
||||
{
|
||||
atf_set "descr" "Check a directory tree against a specfile"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
check_body()
|
||||
{
|
||||
@ -103,6 +105,7 @@ atf_test_case convert_C
|
||||
convert_C_head()
|
||||
{
|
||||
atf_set "descr" "Convert a specfile to mtree -C format, unsorted"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
convert_C_body()
|
||||
{
|
||||
@ -114,6 +117,7 @@ atf_test_case convert_C_S
|
||||
convert_C_S_head()
|
||||
{
|
||||
atf_set "descr" "Convert a specfile to mtree -C format, sorted"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
convert_C_S_body()
|
||||
{
|
||||
@ -125,6 +129,7 @@ atf_test_case convert_D
|
||||
convert_D_head()
|
||||
{
|
||||
atf_set "descr" "Convert a specfile to mtree -D format, unsorted"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
convert_D_body()
|
||||
{
|
||||
@ -136,6 +141,7 @@ atf_test_case convert_D_S
|
||||
convert_D_S_head()
|
||||
{
|
||||
atf_set "descr" "Convert a specfile to mtree -D format, sorted"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
convert_D_S_body()
|
||||
{
|
||||
@ -147,6 +153,7 @@ atf_test_case merge
|
||||
merge_head()
|
||||
{
|
||||
atf_set "descr" "Merge records of different type"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
merge_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_sdiff.sh,v 1.1 2009/02/13 05:19:52 jmmv Exp $
|
||||
# $NetBSD: t_sdiff.sh,v 1.2 2010/06/04 08:39:42 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -94,6 +94,7 @@ atf_test_case merge
|
||||
merge_head()
|
||||
{
|
||||
atf_set "descr" "Checks interactive merging"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
merge_body()
|
||||
{
|
||||
@ -153,6 +154,7 @@ atf_test_case dot
|
||||
dot_head()
|
||||
{
|
||||
atf_set "descr" "Checks comparing with file containing only one character"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dot_body()
|
||||
{
|
||||
@ -167,6 +169,7 @@ atf_test_case stdin
|
||||
stdin_head()
|
||||
{
|
||||
atf_set "descr" "Checks reading data from stdin"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
stdin_body()
|
||||
{
|
||||
@ -183,6 +186,7 @@ atf_test_case short
|
||||
short_head()
|
||||
{
|
||||
atf_set "descr" "Checks premature stop of merging"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
short_body()
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
# $NetBSD: t_wait.sh,v 1.1 2009/10/20 21:58:35 jmmv Exp $
|
||||
# $NetBSD: t_wait.sh,v 1.2 2010/06/04 08:39:42 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||
# Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -28,15 +28,31 @@
|
||||
atf_test_case individual
|
||||
individual_head() {
|
||||
atf_set "descr" "Tests that waiting for individual jobs works"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
individual_body() {
|
||||
sleep 3 &
|
||||
sleep 1 &
|
||||
# atf-sh confuses wait for some reason; work it around by creating
|
||||
# a helper script that executes /bin/sh directly.
|
||||
cat >helper.sh <<EOF
|
||||
sleep 3 &
|
||||
sleep 1 &
|
||||
|
||||
wait %1
|
||||
[ $? = 0 ] || atf_fail "Waiting of first job failed"
|
||||
wait %2
|
||||
[ $? = 0 ] || atf_fail "Waiting of second job failed"
|
||||
wait %1
|
||||
if [ \$? -ne 0 ]; then
|
||||
echo "Waiting of first job failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wait %2
|
||||
if [ \$? -ne 0 ]; then
|
||||
echo "Waiting of second job failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
output=$(/bin/sh helper.sh)
|
||||
[ $? -eq 0 ] || atf_fail "${output}"
|
||||
}
|
||||
|
||||
atf_init_test_cases() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_cp.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_cp.sh,v 1.4 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -49,6 +49,7 @@ reset() {
|
||||
atf_test_case file_to_file
|
||||
file_to_file_head() {
|
||||
atf_set "descr" "Checks the copy of a file to a file"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
file_to_file_body() {
|
||||
reset
|
||||
@ -103,6 +104,7 @@ file_to_file_noflags() {
|
||||
atf_test_case file_to_link
|
||||
file_to_link_head() {
|
||||
atf_set "descr" "Checks the copy of a file to a symbolic link"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
file_to_link_body() {
|
||||
reset
|
||||
@ -113,6 +115,7 @@ file_to_link_body() {
|
||||
atf_test_case link_to_file
|
||||
link_to_file_head() {
|
||||
atf_set "descr" "Checks the copy of a symbolic link to a file"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
link_to_file_body() {
|
||||
reset
|
||||
@ -126,6 +129,7 @@ atf_test_case file_over_link
|
||||
file_over_link_head() {
|
||||
atf_set "descr" "Checks the copy of a file to a symbolic link" \
|
||||
"without following it"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
file_over_link_body() {
|
||||
reset
|
||||
@ -137,6 +141,7 @@ atf_test_case link_over_file
|
||||
link_over_file_head() {
|
||||
atf_set "descr" "Checks the copy of a symbolic link to a file" \
|
||||
"without following the former"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
link_over_file_body() {
|
||||
reset
|
||||
@ -149,6 +154,7 @@ link_over_file_body() {
|
||||
atf_test_case files_to_dir
|
||||
files_to_dir_head() {
|
||||
atf_set "descr" "Checks the copy of multiple files into a directory"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
files_to_dir_body() {
|
||||
reset
|
||||
@ -162,6 +168,7 @@ atf_test_case dir_to_file
|
||||
dir_to_file_head() {
|
||||
atf_set "descr" "Checks the copy of a directory onto a file, which" \
|
||||
"should not work"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dir_to_file_body() {
|
||||
reset
|
||||
@ -174,6 +181,7 @@ atf_test_case file_to_linkdir
|
||||
file_to_linkdir_head() {
|
||||
atf_set "descr" "Checks the copy of a file to a symbolic link that" \
|
||||
"points to a directory"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
file_to_linkdir_body() {
|
||||
reset
|
||||
@ -190,6 +198,7 @@ atf_test_case linkdir_to_file
|
||||
linkdir_to_file_head() {
|
||||
atf_set "descr" "Checks the copy of a symbolic link that points to" \
|
||||
"a directory onto a file"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
linkdir_to_file_body() {
|
||||
reset
|
||||
@ -269,6 +278,7 @@ dir_to_dir_setup() {
|
||||
atf_test_case dir_to_dir
|
||||
dir_to_dir_head() {
|
||||
atf_set "descr" "Checks the copy of a directory onto another directory"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
dir_to_dir_body() {
|
||||
dir_to_dir_setup
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_gzip.sh,v 1.1 2009/02/13 05:19:51 jmmv Exp $
|
||||
# $NetBSD: t_gzip.sh,v 1.2 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -29,6 +29,7 @@ atf_test_case concatenated
|
||||
concatenated_head()
|
||||
{
|
||||
atf_set "descr" "Checks concatenated gzipped data"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
concatenated_body()
|
||||
{
|
||||
@ -53,6 +54,7 @@ atf_test_case truncated
|
||||
truncated_head()
|
||||
{
|
||||
atf_set "descr" "Checks that gzip fails on truncated data"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
truncated_body()
|
||||
{
|
||||
@ -70,6 +72,7 @@ atf_test_case crcerror
|
||||
crcerror_head()
|
||||
{
|
||||
atf_set "descr" "Checks that gzip fails on crc error"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
crcerror_body()
|
||||
{
|
||||
@ -87,6 +90,7 @@ atf_test_case good
|
||||
good_head()
|
||||
{
|
||||
atf_set "descr" "Checks decompressing correct file"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
good_body()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_pax.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_pax.sh,v 1.4 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -30,6 +30,7 @@ append_head() {
|
||||
atf_set "descr" "Ensure that appending a file to an archive" \
|
||||
"produces the same results as if the file" \
|
||||
"had been there during the archive's creation"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
append_body() {
|
||||
touch foo bar
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: t_tar.sh,v 1.3 2009/01/19 07:15:46 jmmv Exp $
|
||||
# $NetBSD: t_tar.sh,v 1.4 2010/06/04 08:39:41 jmmv Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -30,6 +30,7 @@ append_head() {
|
||||
atf_set "descr" "Ensure that appending a file to an archive" \
|
||||
"produces the same results as if the file" \
|
||||
"had been there during the archive's creation"
|
||||
atf_set "use.fs" "true"
|
||||
}
|
||||
append_body() {
|
||||
touch foo bar
|
||||
|
Loading…
Reference in New Issue
Block a user