Commit Graph

394 Commits

Author SHA1 Message Date
pooka 2e16209595 Remove what looks like an outdated assert (there was something very sneaky
about this code, but my memory is fading ...)
2013-09-09 19:47:38 +00:00
pooka 40df3663d1 tests for i/o-after-unlink 2013-08-04 11:02:02 +00:00
skrll 6d42eea15e Slow hardware needs longer, especially for default_deny_user_big 2013-07-29 13:15:24 +00:00
njoly 1fe37e8eed Check that rename(2) with NULL arguments fail with EFAULT. 2013-07-28 09:03:43 +00:00
reinoud ef76be89bb Update test cases for UDF now udf_rename() uses the genfs_rename framework 2013-07-10 18:55:00 +00:00
reinoud f3954b9d18 Cover the last failing UDF test cases with a reference to PR kern/47986, i.e.
all rename's fail until UDF switches over to the new rename framework solving
the locking mechanism.
2013-07-08 06:44:51 +00:00
reinoud 61c2992d1e Use the new extension to newfs_udf to generate a decent image for rump to work
on instead of an FFS(!) version.
2013-07-02 15:00:55 +00:00
martin 5e7b1b08fc Initialize mount args version info.
Add comment about a bogusly used "newfs" where "newfs_udf" is meant.
2013-06-30 15:42:43 +00:00
martin 05df297d98 Fix copy & pasto, notice by Nicolas Joly, one step closer to solving
PR kern/47974.
2013-06-30 15:05:49 +00:00
reinoud cb0bc59d6c Add the rumpfs_udf to the LDADD variable 2013-06-28 13:04:06 +00:00
reinoud 591c440aa2 Add UDF as one of the filesytems to test. Might help understand why rump is
misbehaving on it.
2013-06-26 19:29:24 +00:00
pooka 16eee2303a Fix the test for rumpfs on amd64 by adding a creation mode to open().
thanks to gson for the prod.
2013-06-12 12:08:08 +00:00
jmmv 2f611e9f98 Fix the t_renamerace:lfs_renamerace_dirs test on fast machines.
This test was failing on my machine when run natively but not causing any
problems when run within qemu, and the failure was "mkdir: No space left
on device".

My understanding of the issue is that this test overflowed the temporary
disk image due to its high rate of file churn and the lfs_cleanerd not
being able to keep up.  Note that this test is capped by time, not number
of operations, so this is why the problem does not show up in a slow
emulated system.

To fix this, just bump the test file system image limit a little bit.
(I tried increasing the frequency at which lfs_cleanerd does its thing,
but it wasn't enough.)
2013-03-17 02:48:31 +00:00
jmmv 0818487da7 Simplify test_mount and log errors.
If mount_tmpfs fails, show what the stderr output of the command was instead
of failing without details.

While doing this, remove the stupidity to deal with the optional arguments
to the test_mount routine.
2013-03-17 01:16:45 +00:00
jmmv 6005599c16 Use /bin/sh for a temporary script instead of querying the name of the
shell from atf-config.
2013-03-16 07:54:04 +00:00
jmmv a8e674a6ba Mark a bunch of routinely-broken ZFS tests as expected failures. Point
them at PR kern/47656.
2013-03-16 05:45:37 +00:00
jmmv c2e8322972 Mark the zfs tests as requiring root.
This is wrong.  The zfs tests already use rump so they should not require
root.  However, I've already spent much more time than I wanted trying to
figure out why that's the case without much luck.  If you can find why,
just remove this hack.
2013-03-16 05:24:59 +00:00
christos 12e4d0500d Mystery solved: The build worked for me because the my src tree is in /usr/src.
Refer to the correct source tree instead of the conventionally correct one.
2013-03-06 13:36:50 +00:00
christos 5ae2c875b6 don't refer to things that are irrelevant or never existed. 2013-03-06 13:35:22 +00:00
christos 28c9d06150 Highly uncool to stash a partial copy of the ti-rpc code here. 2013-03-05 19:58:33 +00:00
christos d614974138 use the proper fd_set.
XXX: Instead of making a copy of the libc rpc files here we should re-use the
files from libc, and use macros to provide the extra functionality needed here.
SoC project?
2013-03-05 16:54:08 +00:00
christos 3af68658a0 catch up with libc. 2013-03-05 05:39:54 +00:00
hannken 2242432b52 Test taking a snapshot from a stressed file system.
Checks snapshot meta data only with fsck.

OK: Antti Kantee <pooka@netbsd.org>
2013-02-06 09:05:01 +00:00
dholland 76ad4067c2 spelling 2013-01-22 06:24:11 +00:00
jakllsch 9dc12b580b Add fsbsizeovermaxbsize test that tests mouting a FS with block size greater
than MAXBSIZE.
2012-11-27 16:01:49 +00:00
jakllsch 4ab3368ede Rename fsbsize2big to fsbsizeovermaxphys to accurately match what it tests.
Additionally, compute failing size dynamically by doubling MAXPHYS instead
of assuming 128K will be too big enough.
2012-11-27 15:59:15 +00:00
christos 6298c31a51 add missing includes 2012-11-04 23:37:02 +00:00
bouyer f800b89bbc Add test cases for the bug fixed in sys/ufs/ufs/ufs_quota2.c 1.35:
when a on-disk block/inode allocation triggers allocating a new
quota entry, the new quota entry is not in the quota2 header block,
and the allocation will later be denied, the changes to the quota block would
not be flushed to disk, leading to list corruption (detected by fsck).
2012-09-30 21:26:57 +00:00
pooka ebca36f90a Hook ZFS tests to MKZFS instead of a homegrown variable. 2012-08-31 14:46:53 +00:00
jmmv 46d1235f5d h_ffs_server.c is not a test program. Remove unnecessary traces of atf. 2012-08-24 20:25:50 +00:00
pooka 88392d44db Add a vfstest zfs attachment. This is a compile-time option,
default off, due the large numbers of failing tests (some of them
look like quite trivial failures).
2012-08-20 16:37:35 +00:00
pgoyette 4d0da3bb46 Remove nfsd options as they are no longer needed. 2012-08-13 18:02:32 +00:00
riastradh 57dd555999 Fix ffs_fstest_delfs's error branch for rump_pub_etfs_remove.
rump_pub_etfs_remove returns an error code, rather than setting errno
and returning -1.
2012-08-05 02:03:05 +00:00
riastradh 35d57656cd Adjust t_renamerace now that ext2fs and ffs have good rename. 2012-05-09 00:22:26 +00:00
manu ae04a0ba81 Do not set PUFFS_KFLAG_CACHE_FS_TTL for PUFFS tests 2012-04-21 01:03:46 +00:00
njoly 7e04109e7f New testcase that check file flags with unprivileged credentials. 2012-04-04 18:53:34 +00:00
njoly 22d3abd7be Now that permissions for msdos have been fixed, kill times() special
case which was wrong.
2012-03-26 15:13:20 +00:00
njoly 346de04ed8 Initialise permissions mask to a sensible value (0755).
While here convert leading spaces to tabs.
2012-03-26 15:10:26 +00:00
njoly 16fc5c7678 Extend times testcase to check for non null time values too. 2012-03-23 09:58:23 +00:00
njoly 299c989a28 Remove unneeded atf_tc_expect_pass calls. 2012-03-20 18:20:49 +00:00
jruoho 128cf91305 Remove xfail. 2012-03-20 05:21:45 +00:00
pgoyette 0f64aba0db Finish removing the block of commented-out code from rev 1.31
Hello, christos!
2012-03-19 03:33:54 +00:00
christos 59c51f5cec annotate fixed failures as comments. 2012-03-18 21:49:08 +00:00
njoly a3a0bab7f9 Add another testcase that check setting file times with unprivileged
credentials.
2012-03-15 12:57:27 +00:00
joerg 66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
joerg 37f2635c65 Fix obvious code issues and remove the original -Wno-error for clang
builds to not hide them in the future:
(1) Don't use a pointer to a local variables if all that is done is
comparing it against NULL. The function itself works fine for that
purpose.

(2) Initialise the fail counter, giving the test a chance to work
reliably.
2012-02-24 13:53:46 +00:00
perseant ed08fe6512 Pass t_renamerace and t_rmdirrace tests.
Adapt dholland@'s fix to ufs_rename to fix PR kern/43582.  Address several
other MP locking issues discovered during the course of investigating the
same problem.

Removed extraneous vn_lock() calls on the Ifile, since the Ifile writes
are controlled by the segment lock.

Fix PR kern/45982 by deemphasizing the estimate of how much metadata
will fill the empty space on disk when the disk is nearly empty
(t_renamerace crates a lot of inode blocks on a tiny empty disk).
2012-02-16 02:47:54 +00:00
bouyer 5ba1d99f10 When I split non-quota-specific functions out from ../ffs/quotas_common.sh
I forgot to ajust this test.
Fix PR bin/46015
2012-02-13 22:40:43 +00:00
dholland 2569366154 Update reference output to match yesterday's fix. ok martin@ for releng 2012-02-13 17:55:12 +00:00
njoly c4210b25ef Add a testcase which checks that directory permissions are honored for
file creation/deletion with unprivileged credentials.

releng ok.
2012-02-09 18:31:03 +00:00