Commit Graph

1036 Commits

Author SHA1 Message Date
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
Arkadiusz Miśkiewicz 50a4e5521a Use explict libtool CC tag
(sometimes libtool can't decide what tag is correct one
if omited).

Preserve CFLAGS/CPPFLAGS to allow:
CPPFLAGS="-I$HOME/here-is-xfsprogs-installed/include" \
LDFLAGS="-L$HOME/here-is-xfsprogs-installed/lib" \
./configure  ...

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-02-01 16:10:50 -06:00
Christoph Hellwig 7d1210aa23 add test 202, xfs_repair handling of single-AG filesystems
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-01-25 21:31:16 +01:00
Christoph Hellwig c835227935 fix 122 for removed btree types
With the the btree refactoring various btree trypes have been removed,
so remove them from the golden output for 122.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-01-25 21:30:07 +01:00
Christoph Hellwig 33d8a3e4f3 add test 201: btree corruption without CONFIG_LBD
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
2009-01-22 21:19:14 +01:00
Christoph Hellwig 020af4b4b4 run 092 unconditionally
Now that we support inode64 filesystem on 32-bit plaforms tests 092
should be run unconditionally.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-01-19 04:49:43 +01:00
Eric Sandeen bc2b2c495a Don't run test 197 on 64-bit machines
If it always passes on 64 bits, this gives a false
sense of security.  Make it obvious.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-01-18 19:29:38 -06:00
Christoph Hellwig 22b88d4f52 xfstests: add test 200, exercise read-only block devices and mounts
Make sure we do the right thing with blockdevices with a hard read-only
flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-01-10 21:38:24 +01:00
Christoph Hellwig 0569ea9cbf xfstests: add test 199, bad_features2 correction
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-01-10 21:37:27 +01:00
Eric Sandeen 1a50ac4ba7 Add Makepkgs support to xfstests (tar & rpm only so far)
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-01-02 22:29:32 -06:00
Eric Sandeen 8c5325e126 Create xfstests install target.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-01-02 22:28:37 -06:00
Eric Sandeen 8d7ac89a2d test 198, testcase for aio+dio writes into sparse files
Older kernels were not doing completion properly, and converting
unwritten extents at the wrong offsets; this exposed stale data.

Xen w/ the blktap driver was hitting this.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-31 13:06:23 +01:00
Christoph Hellwig 1d10ce2d5a test 197, add a testcase for d_off truncation
Make sure our directory offsets fit into a 32 bit value.
Based on a report by John Stanley.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2008-12-31 12:59:19 +01:00
Christoph Hellwig c96afe9caa test 196, add a testcase for renames across project boundaries
Make sure rename across project boundaries is rejected and doesn't
cause hangs.  Based on a report and testcase from Arkadiusz Miskiewicz.

Signed-off-by: Christoph Hellwig <hch@lst.de>
2008-12-31 12:53:33 +01:00
Christoph Hellwig a9e6dbe1b6 test 195, add a testcase for the nodump flag
Based on http://oss.sgi.com/bugzilla/show_bug.cgi?id=340.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2008-12-31 12:53:21 +01:00
Christoph Hellwig 8a327f9130 update for xfs_dinode_core_t removal
Strip away the core. prefixes in 186 to make sure the golden output
works for both old and new xfsprogs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2008-12-31 12:52:35 +01:00