Commit Graph

1047 Commits

Author SHA1 Message Date
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
Christoph Hellwig 68f67d9c74 fix compiler warnings
Include all nessecary headers, use the correct format strings and don't
redefine _GNU_SOURCE.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2008-12-31 12:52:05 +01:00
Eric Sandeen 9890a9a98f test 194, test tricky mapping/conversion around holes
Related to
http://oss.sgi.com/bugzilla/show_bug.cgi?id=801

Latest patch posted on that bug makes this testcase pass...

first 2 tests are simple buffred writ tests making sure stale
data isn't exposed, and hole-blocks aren't mapped.

2nd 2 tests are more related to the above bug, tricky testcase
uncovered by fsx on ppc64 which actually re-maps a block
which should be a hole, bringing stale data back into existence.

V2, don't use non-posix awk extensions

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:34:17 +01:00
Christoph Hellwig ba3308c83b add more tests to the auto group
make sure we run all tests than don't either take forever or currently fail
(or require a tape drive) to the auto group.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
2008-12-30 23:33:39 +01:00
Eric Sandeen 1dce02067c fix dbtest build
At least on my x86_64 RHEL5 box, if gdbm-devel is installed, then the
xfstests build fails with:

gcc dbtest.c -o dbtest -g -O2 -DDEBUG -I../include -DVERSION=\"1.0.0\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -funsigned-char -fno-strict-aliasing -Wall  ../lib/.libs/libtest.a
dbtest.c: In function 'InitDbmLookup':
dbtest.c:147: warning: cast from pointer to integer of different size
dbtest.c:198: warning: cast from pointer to integer of different size
/tmp/ccuekqxe.o: In function `CleanupDbmLookup':
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:304: undefined reference to `dbm_close'
/tmp/ccuekqxe.o: In function `DoDbmLookup':
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:220: undefined reference to `dbm_fetch'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:264: undefined reference to `dbm_fetch'
/tmp/ccuekqxe.o: In function `InitDbmLookup':
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:146: undefined reference to `dbm_open'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:179: undefined reference to `dbm_store'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:192: undefined reference to `dbm_close'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:197: undefined reference to `dbm_open'
collect2: ld returned 1 exit status
gmake[1]: *** [dbtest] Error 1
make: *** [default] Error 2

This patch fixes it for me, but my userspace-fu is weak; does this look ok?

Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:33:34 +01:00
Matthew Kent e062520715 fix xfsqa 189 for log and rt devices
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:33:30 +01:00
Matthew Kent 73129b3bbb xfstests: add a unified diff option
Add the -udiff option to the test driver to make test output more
easily readable.

[hch:  made -udiff the default]

Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:33:24 +01:00
Mike Frysinger 67f19adfc6 fix number of arguments to AC_DEFINE
aclocal hates when you only specify one parameter to AC_DEFINE ... simple patch
to add the other two parameters

fixes for acl and xfstests

[hch: added nfs4acl]

Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:21:52 +01:00
Eric Sandeen 305b6f33d7 fix up xfs-cmds build after the parallel-fest
My big parallel build patch lost the "make configure" target.
This broke Makepkgs...

Now, IMHO, running configure from make is a little bass-ackwards;
I'd probably prefer to have Makepkgs explicitly run:

 autoconf; configure --myoptions; make

but for now, this adds back in a workable "make configure" target.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:21:24 +01:00
Tim Shimmin 88dc8b4815 Test out the perm checks in xfs_setattr - chmod, chown, etc..
Merge of master-melb:xfs-cmds:32713a by kenmcd.

  Test out the perm checks in xfs_setattr - chmod, chown, etc..
2008-12-10 14:03:09 +00:00
Tim Shimmin 4a958ea077 Test out that access time is updated correctly in memory and on disk.
Merge of master-melb:xfs-cmds:32647a by kenmcd.

  Test out that access time is updated correctly in memory and on disk.
2008-12-09 14:15:47 +00:00
Brad Scarlett 286a747ccd XFS Quota tests were unaware of usrquota and grpquota mount options
Merge of master-melb:xfs-cmds:32619a by kenmcd.

  Fix 134 so it is notrun if grpquota mount option is detected.
2008-12-02 04:56:16 +00:00
Donald Douwsma 67cb6d33b5 Take into account nfs4acl output
Merge of master-melb:xfs-cmds:32613a by kenmcd.
2008-12-01 14:09:30 +00:00
Barry Naujok a87c927524 mkfe2fs unfortunately hasn't heard about real enterprise setups using
whole disks and needs the -F option to create a filesystem on those
without asking stupid questions that make the testcases block forever.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:32546a by kenmcd.

  fix xfsqa on whole disks
2008-11-26 02:43:44 +00:00
Barry Naujok 4be0d16663 Fedora is catching calls to open which have O_CREAT set w/o a mode.
Merge of master-melb:xfs-cmds:32535a by kenmcd.

  Fedora is catching calls to open which have O_CREAT set w/o a mode.
2008-11-25 03:10:07 +00:00