Commit Graph

94 Commits

Author SHA1 Message Date
Dave Chinner f3e65e9150 fstests: convert top level files and tools to SPDX
Scripted conversion, see script in initial SPDX license commit
message. Many files required touch-ups after the script had run
because of the old and widely different formats. most touchups were
to remove excess empty comment lines the script left behind.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
2018-06-09 11:36:01 +10:00
Dave Chinner 46199319f6 fstests: remove old electric fence support
Just not used anymore.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2018-05-11 09:35:38 +08:00
Darrick J. Wong 1bd599745e xfs/040: use compare-libxfs in xfsprogs
xfsprogs now ships with a tool to compare its libxfs against a kernel
libxfs.  Since the old srcdiff tool assumes dmapi.h (IRIX only) and the
pre-libxfs directory tree layout, fix the test and remove the old tool.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-06-22 23:25:32 +08:00
Eryu Guan aec50848c3 tools/nextid: pad 0 in next test id seq number
nextid returns the next available seq number, but it doesn't pad id
number with 0, e.g.

./tools/nextid ext4
23

After the fix it returns:

./tools/nextid ext4
023

This eases the process of moving tests around in a script.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-01-27 16:06:12 +08:00
Darrick J. Wong 4bf2c4461c mvtest: change "FSQA Test No." when we renumber tests
We have a number of tests (and submitters) who write tests
containing "FSQA Test No." (as opposed to "FS QA Test No."), so
update the mvtest script to change both forms.

Also fix a sed bug that deletes too many group lines.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-01-27 16:06:12 +08:00
Eric Sandeen 2ad5167475 tools: compare-failures script
This is a simple script to compare failures across runs.

Given files containing stdout from several runs, each of which contains
a Failures: line, it will print a table of all failures for each run.
Test subdir names are abbreviated for compactness, i.e. generic->g.
For 7 results files named test 1 through test 7:

Failures:
g/075 g/082 g/209 g/233 g/270 g/388 x/004 x/073 x/076
-----------------------------------------------------
      g/082       g/233             x/004 x/073       test1
      g/082       g/233             x/004 x/073 x/076 test2
      g/082                         x/004 x/073 x/076 test3
      g/082                   g/388 x/004 x/073       test4
      g/082             g/270       x/004 x/073       test5
      g/082                         x/004 x/073       test6
g/075 g/082 g/209 g/233             x/004 x/073       test7

This lets us easily spot unique failures and outliers.

This could be enhanced to output CSV etc, but for now I think it's
helpful to visualize changes in failures across multiple runs.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-01-18 15:59:33 +08:00
Darrick J. Wong 589d17dbfa tools/mvtest: call out to the correct group sort program
mvtest should call the actual name of the sort-group program.
Fix a cut-paste error in finding the destination group file.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2016-02-08 09:27:14 +11:00
Darrick J. Wong 2084222338 test-scripts: test migration scripts
Add two scripts: "nextid" finds the next available test ID number in a
group, and "mvtest" relocates a test, fixes the golden output, and
moves the group entry for that test.

v2: sorting group files should preserve group order; nextid should use
the same algorithm as new; move both tools to tools/.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2015-12-21 18:07:52 +11:00
Eryu Guan 8575764a79 xfstests: fix common source file path
After the re-factor, common.* have been renamed to common/* but there
are several files still look for the old path, fix it.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
2013-03-29 10:09:35 -05:00
Felix Blyakher 491d467f3c Add GPL license plate to SGI's 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-06-05 15:41:14 -05:00
Barry Naujok 2c578cb87f Update xfsprogs to latest kernel headers and functions
Merge of master-melb:xfs-cmds:32070a by kenmcd.
2008-09-08 06:18:43 +00:00
Nathan Scott de6d86177f QA test updates - fixes for pquota, extsize, fsstress, and ensure mount options passed through to test_dev.
Merge of master-melb:xfs-cmds:24763a by kenmcd.
2005-12-09 02:52:22 +00:00
Nathan Scott 834e691c4e QA script update
Merge of master-melb:xfs-cmds:24336a by kenmcd.
2005-11-09 05:05:06 +00:00
Nathan Scott d259454b19 Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24329a by kenmcd.
2005-11-09 02:50:19 +00:00
Tim Shimmin c57cc6fb97 fix up start and stop state
Merge of master-melb:xfs-cmds:23621a by kenmcd.

  fix up start and stop state
2005-08-24 15:19:05 +00:00
Nathan Scott d0b5d2750b Keep userspace packaging in sync; update srcdiff to grok moved dmapi source.
Merge of xfs-cmds-melb:slinx:19608a by kenmcd.
2004-09-30 14:48:51 +00:00
Nathan Scott 2765c8a3f8 Update user/kernel source checker to work better with separate user/kernel trees. 2004-04-30 02:58:44 +00:00
fsgqa e23849bf53 cleanup some qa stuff
Get rid of checking log for recovery msgs. It's too much
hassle and probably not worth it.
2004-04-23 04:08:39 +00:00
fsgqa d0d6ac2d43 Some qa cleanup.
Fix mkfs failure to report such instead of mount failure.
2004-04-21 04:48:56 +00:00
fsgqa 54600d6e7c Don't need the p_check ... | p_purge as newer ptools will do
this automagically on p_tupdate.
Change clean state to "cleankernel"; missed on past renaming.
Don't need the p_check ... | p_purge as newer ptools will do
this automagically on p_tupdate.
Change clean state to "cleankernel"; missed on past renaming.
2004-04-21 04:30:30 +00:00
fsgqa d35ba565f8 Fix ag-wipe so that it runs on IRIX (getopt reorders args in glibc). 2004-02-05 02:29:06 +00:00
fsgqa c3ec644eb5 Minor xfstests tweaks - report kernel version in check as in bench. 2004-02-02 01:13:25 +00:00
Nathan Scott ada6e653fa Update several QA tests, configure magic in xfstests directory.
Fix up filters to handle additional xfs_db output.
2004-01-19 04:51:52 +00:00
fsgqa 9d8399fbe1 Test script updates to cater for the revised tree layout. Allows for separate user/kernel workareas now. 2004-01-14 02:29:30 +00:00
fsgqa 8a32dda987 Update xfstests control scripts to allow multiple kernel versions and multiple architectures to be more easily supported. 2003-09-22 06:57:28 +00:00