Commit Graph

58 Commits

Author SHA1 Message Date
skrll 6d42eea15e Slow hardware needs longer, especially for default_deny_user_big 2013-07-29 13:15:24 +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
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
jmmv 46d1235f5d h_ffs_server.c is not a test program. Remove unnecessary traces of atf. 2012-08-24 20:25:50 +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
dholland 2569366154 Update reference output to match yesterday's fix. ok martin@ for releng 2012-02-13 17:55:12 +00:00
dholland f9735fd481 Reimplement repquota -x to print in tabular form instead of XML. 2012-02-01 05:12:45 +00:00
bouyer 9427679519 Make parts of the quota tests useable for more than quotas:
- rename h_quota2_server to h_ffs_server, there's nothing about quotas
  in there.
- extract non-quota parts of quotas_common.sh to ffs_common.sh
2012-01-18 20:51:23 +00:00
joerg afc8527716 Use proper format strings. 2011-06-16 15:33:24 +00:00
christos 2a18cea9f4 Turn warns on for all tests and fix all the bugs. 2011-06-11 18:03:17 +00:00
bouyer 577c32edc7 Add support for multiple rump servers in shutdown and cleanup 2011-03-12 13:43:58 +00:00
tron 4339a30cbc Don't descend into non-existing subdirectory "clients". 2011-03-09 20:13:47 +00:00
bouyer 37628c8c74 Use librumphijack for quota commands instead of rumpifed versions. 2011-03-09 19:04:57 +00:00
enami 08376a9153 Fix link error. 2011-03-07 03:29:26 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
pooka b98ccd4da5 test snapshots on ffsv2 too 2010-11-19 12:36:49 +00:00
jmmv decf2b5e0f Adjusts tests after import of atf-0.12:
- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
  unprivileged-user:_atf setting.  This probably deserves a fix somehow
  but I'm not sure at this point.
2010-11-07 17:51:16 +00:00
pooka 948c1978f6 test fss with underlying fs mounted with MNT_LOG 2010-11-05 11:32:09 +00:00
pooka 36445fc1a8 remove newline from error 2010-11-05 11:31:15 +00:00
he 0549224c7a Reorder the library specifications, so that we don't depend on the
library dependencies recorded in shared libraries, allowing these
to be linked statically as well.
2010-09-23 09:39:14 +00:00
pooka 7a2fe155ef add comment saying why the other test doesn't use fstest 2010-08-09 19:36:30 +00:00
pooka 471d3742de * convert 48k fs image test to FSTEST_CON/DESTRO
* make sure hugeblocksize doesn't accidentally succeed
2010-08-09 19:34:59 +00:00
pooka 2fc19132b3 Check that mounting a file system with blocksize > MAXPHYS returns an error. 2010-08-09 17:42:26 +00:00
pooka 272fb16e97 Fold the puffs private and vfs tests mount/unmount routines together.
To achieve this, add a file system private parameter to the newfs
method (which will obviously not be used by vfs tests).

njoly ok
2010-07-30 16:15:05 +00:00
pooka 7d8af8c741 Need to use the ${PRINTOBJDIR} trick for LIBISPRIVATE ... 2010-07-19 16:32:01 +00:00
pooka cca4b54ef7 Include h_fsmacros instead of ffs.c and link in test lib. 2010-07-19 16:22:05 +00:00
pooka 3b5bc723d2 Convert "The Original" rename race test from to vfs and retire the
ffs/tmpfs versions.  The only difference is that the origamical
one mounted ffs with MNT_LOG (and therein actually lay the bug).
2010-07-14 21:39:31 +00:00
jmmv 9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
njoly fb13fa89fd Add testcase data argument to all fstest helper functions.
Needed by pooka for puffs fstest support.
2010-07-13 15:50:31 +00:00
enami 5559382642 Make this compile again. 2010-07-13 01:42:21 +00:00
pooka 83eca23e73 * fill PR number to xfail now that we have one -- let's try not
to add any xfail tests without an associated PR
* move xfail to the correct place
2010-07-05 17:12:48 +00:00
jmmv 9c8ebeed66 Use expect_fail instead of defining xfail. Looks like I missed this one
during the import of atf 0.10.  Thanks pooka@.
2010-07-05 16:34:41 +00:00
njoly 24850d26c8 Small xfail testcase to exercise 48k ffs image mount, from problem
reported by Hubert Feyrer on netbsd-users@.
2010-06-30 21:54:56 +00:00
pooka 51f4669ad3 qemu has been fixed, so remove timeout
(not that it helped in the first place ...)
2010-06-30 16:37:12 +00:00
jmmv 6b84fb92ac 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 :-)
2010-06-04 08:39:40 +00:00
pooka 104b695ac0 Now that atf gdb/coredump conflicts have been solved (thanks jmmv!),
remove USE_ATF ifdefs.
2010-05-31 23:44:54 +00:00
dholland 8f40ab4ef3 Use PATH_MAX instead of MAXPATHLEN and include limits.h. 2010-05-30 05:35:48 +00:00
pooka 0714e24da4 fix !USE_ATF 2010-05-01 10:46:29 +00:00
pooka 0d66aa2889 Split snapshot test into fs-independent backend and fs-specific frontend.
I really wish all our fs tests were like this (in principle, that
is.  I'm not talking about this hacky implementation).  I've been
wishing this for quite a few years now.  Seems like my wishes don't
come true.
2010-04-13 10:19:25 +00:00
pooka a9ac6f044d move check next to operation 2010-04-12 23:15:24 +00:00
pooka 5af2edd9e6 test for the very basic snapshot features 2010-04-12 22:58:53 +00:00
njoly 055c56a77b Use tp-glob keys when requesting for test pattern. 2010-03-31 18:40:26 +00:00
pooka b501712ab5 regression test for fifos on ffs
XXX: same test apart for mount/unmount could be used on other
fifo-supporting file systems (r/w support required, though).
2010-03-29 13:26:32 +00:00
mlelstv 10019347da filesystems now use getdisksize() which is in librumpdev_disk. 2010-01-31 14:30:22 +00:00
pooka bf3992af18 Adjust names of external rump control interfaces to match the
new rump_pub namespace.
2009-10-14 18:22:50 +00:00
pooka 36c33536d3 Set timeout to 20 because for some reason this test hangs in qemu.
(Well, it *still* hangs even after the timeout has passed, but at
least there's multiple problems to debug now)
2009-09-17 13:12:51 +00:00
pooka f0190dc27d rump_fakeblk -> rump_etfs 2009-08-03 14:25:24 +00:00