Commit Graph

1051 Commits

Author SHA1 Message Date
Felix Blyakher 65491dc047 Add GPL license plate to SGI's test files.
Signed-off-by: Felix Blyakher <felixb@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
2009-05-26 16:51:14 -05:00
Eric Sandeen 2ceb87ff3f xfstests: tidy up 205
Test 205 wasn't marked executable, and had the wrong test
number in the comments.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
2009-05-10 10:42:09 -05:00
Eric Sandeen d4458cae34 xfstests 042: point xfs_fsr right at the fragmented file
Somehow 042 as it stands isn't actually defragging the fragmented
file we created (see 042.full post-run)

Probably need to look into that as well, but for now this should
make the call to fsr actually _do_ something.

This has let 2 fsr bugs slip through qa in the past few months.   :( 

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
2009-05-08 22:03:40 -05:00
Eric Sandeen 90395f8d7c xfstests: fix 130, 132 for inifinitely-fast disks
Due to the new quantum/holographic storage I'm testing, my 
disks go infinitely fast, thereby breaking some filters:

-XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+3 KiB, 1 ops; 0.0000 sec (inf EiB/sec and inf ops/sec)

I'm no regexp expert but I think the below change will fix it.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
2009-04-24 13:57:55 -05:00
Eric Sandeen 7c75dff3dd Revert "patch more_set_prog_path"
This reverts commit b2fcff900d.

This snuck in unintentionally due to my weak git-fu,
and was breaking things.
2009-04-23 12:42:32 -05:00
Eric Sandeen b07db198e9 xfstests: filter out imaxpct value in test 096
On large filesystems, imaxpc drops from 25 to 5,
so filter out that difference.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
2009-04-23 12:33:03 -05:00
Eric Sandeen 766b997b78 xfstests: skip fsr tests if xfs_fsr utils not found
Similar to the xfsdump-related patch; gracefully fail
if no xfs_fsr is found.

I'll probably send another for the acl & attr userspace,
it's actually not always installed on minimal boxes.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
2009-04-19 21:10:42 -05:00
Eric Sandeen 37521c6718 xfstests: skip dump tests if dump utils not found
I was running xfstests on a NAS box which had no xfsdump,
and any tests which required xfsdump were failing in not-so-nice
ways:

+ xfsdump not found
038      [failed, exit status 1] - output mismatch (see 038.out.bad)

I think using _notrun is a lot better:

038      [not run] xfsdump not found

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Josef 'Jeff' Sipek" <jeffpc@josefsipek.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
2009-04-19 21:11:32 -05:00
Eric Sandeen ce0980fa78 Merge branch 'master' of git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev 2009-04-19 15:48:54 -05:00
Eric Sandeen b2fcff900d patch more_set_prog_path 2009-04-19 15:48:48 -05:00
Felix Blyakher 7552920374 Merge branch 'master' of git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev 2009-04-13 16:47:23 -05:00
Felix Blyakher d0f0d2f428 xfstests: fix async io error handling in fsx
The result of async io returned in the event.res in addition
to the number of bytes read/written provides negated error
number. The broken libaio defines event.res as unsigned
while the same structure in the kernel defines it as signed.
The kernel indeed treats it as signed, and returns the
negated error number. Till libaio is fixed we provide
the signed long temp var.
Also set errno for each error condition in aio_rw, as the
caller is not aio aware and expects ret(-1)+errno by the
traditional libc convention.

Signed-off-by: Felix Blyakher <felixb@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-04-13 16:46:00 -05:00
Dave Chinner bbcb978f8b xfstests: test 205, test writing to ENOSPC
Use larger files and different writing styles to fill a 100MB filesystem
to being full. In each case we should get very close to the filesystem
being full before getting ENOSPC. This tests different types of ENOSPC
failures to test 203 and requires more changes to pass.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-04-13 15:55:41 +02:00
Dave Chinner 143368a047 xfstests: add test 204, a simple delayed allocation ENOSPC test
Using a small (100MB) filesystem and writing lots of single block files
can result in spurious ENOSPCs being reported. Reproduce this test case
so we can confirm that it gets fixed.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-04-13 15:51:58 +02:00
Josef 'Jeff' Sipek c91aa78f72 xfstests: Add a .gitignore file
Ignore generated files.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@eecs.umich.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
2009-04-13 15:49:04 +02:00
Josef 'Jeff' Sipek 94c9728880 xfstests: make the mode consistent for all the test scripts
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@eecs.umich.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-04-13 15:45:41 +02:00
Dave Chinner e714acc0ef reduce the number of processes forked
One of the big cpu time consumers when running xfsqa on UML
is forking of new processes. when looping lots of times,
using 'expr' to calculate the loop counter increment means
we fork at least once every loop. using shell builtins means
that we don't fork and many tests run substantially faster.

Some tests are even runnable with this modification. e.g. 110
went from taking 4500s to run down to 9s with the loop iterators
changed to avoid forking.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-03-25 20:53:36 +01:00
Christoph Hellwig d3592f9b21 add test 203, xfs_io bmap reallocation
Test that we can get all extent/hole information for files with more
than 16 extents and 15 holes which require a reallocation based on
XFS_IOC_FSGETXATTR.

Based on a testcase from Tomasz Majkowski <moosh009@gmail.com>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-03-21 21:05:51 +01:00
Christoph Hellwig 2370bb6d22 xfstests: a couple of fixes for external logs
Fix a couple of issues when running xfsqa with external logs:

 - update the 096 golden output for the external log case
 - add a new _scratch_xfs_check similar to _scratch_xfs_logprint and
   _scratch_xfs_repair that take the log device into account and use it
   in test 134
 - use _scratch_xfs_repair in test 202 to fix it for external log
   devices

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-03-21 21:04:13 +01:00
Christoph Hellwig b9f1319261 add "quick" group
Add a new group for test to quickly verify WIP patches.  I've started
it by only taking tests fro mthe auto group that take 20 seconds or less
to complete on the kvm virtual machine on my laptop.  The total run
of the quick group takes about 8 minutes for me.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-23 14:28:06 +01:00
Christoph Hellwig 60419c0201 test 134 requires quotas
Add a  _require_quota call to make sure it shows up as not run and not
as failed if the kernel doesn't support quotas.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-20 21:54:56 +01:00
Christoph Hellwig 3890cf3a80 remove tests 171, 172 and 173 from auto group
I don't have a single machine where these succeed, and due to the wait
the filestreams allocator works these tests might depend on the phase
on the moon to get their expected output.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-20 21:53:02 +01:00
Christoph Hellwig cd45922ddf test 199: test features2 fixup for the regular case, too
Eric Sandeen noted that we should not only test the mount ro first, then
remount rw case in 199 but also the regular mount rw case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-15 19:18:47 +01:00
Christoph Hellwig b53d1fd503 test 201: fix comment typos
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-15 19:17:21 +01:00
Arkadiusz Miśkiewicz 1525236a3b xfstests: Fix *FLAGS passing and dependencies.
Pass *FLAGS in some targets.

Drop LIBHANDLE, LIBATTR and LIBACL from deps since there are in form
"-llibrary".

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-02 14:20:02 -06:00