Commit Graph

19 Commits

Author SHA1 Message Date
Dave Chinner 771e69de67 xfstests: Convert all tests to use /bin/bash
While most tests use /bin/sh, they are dependent on /bin/sh being a
bash shell.  Convert all the tests to execute via /bin/bash as it is
much, much simpler than trying to debug and remove all the bashisms
throughout the test code.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2010-01-20 10:27:08 +11:00
Eric Sandeen 56f7241b4e xfstests 073: unmount source image in cleanup
Test 073 is currently failing w/ xfs_repair problems, and when
it does, the whole series stops because the test dir still has
a loopback mounted filesystem on it, and it can't unmount.

Fix that.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2010-01-17 10:35:23 -06:00
Dave Chinner 2b5159aa20 make unmounting loop devices in 073 work again
Loop devices are now created and destroyed on demand, and
the existing hacks to do this no longer work. Remove them.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2010-01-12 22:49:03 +01:00
Christoph Hellwig f381f98206 xfstests: move GPL boilerplates to fix lsqa.pl
It turns out lsqa.pl nees the test number and description first in the
file, so move the GPL boilerplates below it.

Also remove acouple of cases where we have one full copyright line + gpl
boilerplate before the description and another copyright line after
the description.

Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-05-28 17:04:15 +02:00
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 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 b2fcff900d patch more_set_prog_path 2009-04-19 15:48:48 -05:00
Brad Scarlett c7167f667a Fix 073 to run on sles10 systems
Merge of master-melb:xfs-cmds:31236a by kenmcd.
2008-05-28 04:05:02 +00:00
Dave Chinner 247f0f7d14 Don't use /tmp for hosting loopback images
/tmp might be small, might not support files larger than 2GB,
etc, so trying to host loopback images of 100GB filesystems
will break in some situations. We should use $TEST_DIR for the
images.

Note: remounting of loopback images has a major bug (in mount)
that "leaks" loopback device references. Hence all the hackery
with losetup to work around this.
Merge of master-melb:xfs-cmds:31169a by kenmcd.

  Don't use /tmp for hosting loopback images
2008-05-15 16:37:27 +00:00
David Disseldorp 1d315d6785 XFSQA 073 is still not correctly cleaning up $tmp,
this is because $tmp.source_dir is not an empty dir.

This change recursively deletes everything in $tmp.source_dir.
Not required for $tmp.loop as it is used as a loopback mountpoint.

the ignore external MKFS_OPTIONS change is no longer required,
as _scratch_mkfs_xfs now handles conflicting options.
Merge of master-melb:xfs-cmds:28863a by kenmcd.

  cleanup tmp and don't kill mkfs options
2007-06-08 16:24:08 +00:00
David Disseldorp f3cc085bbc cleanup xfs_copy images after running test
Merge of master-melb:xfs-cmds:27351a by kenmcd.
2006-11-06 02:52:23 +00:00
Allan Randall 176a17cc7c fixed mkfs options to stop failure when sunit and swidth are set as MKFS_OPTIONS
Merge of master-melb:xfs-cmds:26322a by kenmcd.

  fixed mkfs options to stop failure when sunit and swidth are set as MKFS_OPTIONS.
2006-06-23 02:57:44 +00:00
Nathan Scott 6712554df4 Fix filtering in xfs_copy test 073.
Merge of master-melb:xfs-cmds:25610a by kenmcd.
2006-03-30 03:53:33 +00:00
Nathan Scott 640164847a Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24327a by kenmcd.
2005-11-09 02:49:08 +00:00
Nathan Scott 52f7291600 Fix test 073 after changes to handle external log/rt devices.
Merge of xfs-cmds-melb:slinx:20287a by kenmcd.
2004-11-24 13:44:32 +00:00
ptools cb6beb9759 Fixed merge problems 2004-06-15 07:32:36 +00:00
fsgqa 26290f238c Use a smaller scratch bigfs, 1tb is a bad idea without big-AG changes 2003-07-25 00:45:59 +00:00
fsgqa 9a1f202608 QA updates for testing xfs_copy 2003-07-22 02:38:08 +00:00
fsgqa 72f0ade93d Crank up fsstress a whole lot, enable unwritten extents everywhere, remove need for special getpagesize program 2003-07-14 05:12:23 +00:00