Commit Graph

14 Commits

Author SHA1 Message Date
Eric Sandeen 73fee68110 xfstests: helper to detect fs free space
Make a common helper to skip a test if there's not enough
free space on the target fs.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2010-02-02 17:23:58 -06:00
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
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
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
Mohamed Barwani 38e49e4e15 Test 180 breaks if you have long device paths
Use -P for df to fix it

       -P, --portability
              use the POSIX output format
Merge of master-melb:xfs-cmds:31162a by kenmcd.

  fix df for long /dev paths
2008-05-15 04:23:55 +00:00
Lachlan McIlroy 5ac26da787 Fix the file size checks so it works on IRIX too.
Merge of master-melb:xfs-cmds:30336a by kenmcd.

  Fix the file size checks so it works on IRIX too.
2008-01-15 14:59:05 +00:00
Mohamed Barwani a2d17b45c1 Added a check for disk space..
Merge of master-melb:xfs-cmds:29995a by kenmcd.

  Check if there is enough disk space to run this test..
2007-11-01 03:11:35 +00:00
Lachlan McIlroy 979ed6f333 Check filesystem after log replay and abort test if errors found
Merge of master-melb:xfs-cmds:29730a by kenmcd.

  Check filesystem after log replay and abort test if errors found
2007-09-20 06:13:47 +00:00
Lachlan McIlroy 2659a01a6b Abort tests if a failure is encountered while creating/writing test files.
Merge of master-melb:xfs-cmds:29728a by kenmcd.

  Abort tests if a failure is encountered while creating/writing test files.
2007-09-20 06:13:02 +00:00
Lachlan McIlroy 655dc6367a Use larger files in test - makes it easier to expose problem.
Merge of master-melb:xfs-cmds:29558a by kenmcd.

  Use larger files in test - makes it easier to expose problem.
2007-08-30 16:10:35 +00:00
Lachlan McIlroy 5db9372a13 Report errors for missing files and check for correct file sizes
Merge of master-melb:xfs-cmds:29557a by kenmcd.

  Report errors for missing files and check for correct file sizes
2007-08-30 16:09:49 +00:00
Lachlan McIlroy 53a2bd6253 Test that fsync/sync force file size changes to disk.
Merge of master-melb:xfs-cmds:29441a by kenmcd.

  Test that fsync forces file size changes to disk.
2007-08-20 06:19:41 +00:00