From: Ravi Singh <ravising@redhat.com>
To: fstests@vger.kernel.org
Cc: djwong@kernel.org
Subject: [PATCH v2 1/1] README: improve README formatting and clarity
Date: Thu, 13 Nov 2025 06:51:35 -0500 [thread overview]
Message-ID: <20251113115135.609307-2-ravising@redhat.com> (raw)
In-Reply-To: <20251113115135.609307-1-ravising@redhat.com>
- Standardize shell command prompts with '#' for readability
- Correct minor typos
- Clarify instructions for running tests.
Signed-off-by: Ravi Singh <ravising@redhat.com>
---
README | 70 +++++++++++++++++++++++++++++++---------------------------
1 file changed, 37 insertions(+), 33 deletions(-)
diff --git a/README b/README
index 9e9afe3c..fd27812e 100644
--- a/README
+++ b/README
@@ -97,8 +97,8 @@ Ubuntu or Debian
1. Make sure that package list is up-to-date and install all necessary packages:
- $ sudo apt-get update
- $ sudo apt-get install acl attr automake bc dbench dump e2fsprogs fio gawk \
+ # sudo apt-get update
+ # sudo apt-get install acl attr automake bc dbench dump e2fsprogs fio gawk \
gcc git indent libacl1-dev libaio-dev libcap-dev libgdbm-dev libtool \
libtool-bin liburing-dev libuuid1 lvm2 make psmisc python3 quota sed \
uuid-dev uuid-runtime xfsprogs linux-headers-$(uname -r) sqlite3 \
@@ -106,7 +106,7 @@ Ubuntu or Debian
2. Install packages for the filesystem(s) being tested:
- $ sudo apt-get install exfatprogs f2fs-tools ocfs2-tools udftools xfsdump \
+ # sudo apt-get install exfatprogs f2fs-tools ocfs2-tools udftools xfsdump \
xfslibs-dev
Fedora
@@ -114,14 +114,14 @@ Fedora
1. Install all necessary packages from standard repository:
- $ sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \
+ # sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \
gdbm-devel git indent kernel-devel libacl-devel libaio-devel \
libcap-devel libtool liburing-devel libuuid-devel lvm2 make psmisc \
python3 quota sed sqlite udftools xfsprogs
2. Install packages for the filesystem(s) being tested:
- $ sudo yum install btrfs-progs exfatprogs f2fs-tools ocfs2-tools xfsdump \
+ # sudo yum install btrfs-progs exfatprogs f2fs-tools ocfs2-tools xfsdump \
xfsprogs-devel
RHEL or CentOS
@@ -133,7 +133,7 @@ RHEL or CentOS
2. Install all necessary packages which are available from standard repository
and EPEL:
- $ sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \
+ # sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \
gdbm-devel git indent kernel-devel libacl-devel libaio-devel \
libcap-devel libtool libuuid-devel lvm2 make psmisc python3 quota sed \
sqlite udftools xfsprogs
@@ -148,10 +148,10 @@ RHEL or CentOS
4. Install packages for the filesystem(s) being tested:
For XFS install:
- $ sudo yum install xfsdump xfsprogs-devel
+ # sudo yum install xfsdump xfsprogs-devel
For exfat install:
- $ sudo yum install exfatprogs
+ # sudo yum install exfatprogs
For f2fs build and install:
- see https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/about/
@@ -164,25 +164,25 @@ SUSE Linux Enterprise or openSUSE
1. Install all necessary packages from standard repositories:
- $ sudo zypper install acct automake bc dbench duperemove dump fio gcc git \
+ # sudo zypper install acct automake bc dbench duperemove dump fio gcc git \
indent libacl-devel libaio-devel libattr-devel libcap libcap-devel \
libtool liburing-devel libuuid-devel lvm2 make quota sqlite3 xfsprogs
2. Install packages for the filesystem(s) being tested:
For btrfs install:
- $ sudo zypper install btrfsprogs libbtrfs-devel
+ # sudo zypper install btrfsprogs libbtrfs-devel
For XFS install:
- $ sudo zypper install xfsdump xfsprogs-devel
+ # sudo zypper install xfsdump xfsprogs-devel
Build and install test, libs and utils
--------------------------------------
-$ git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
-$ cd xfstests-dev
-$ make
-$ sudo make install
+# git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
+# cd xfstests-dev
+# make
+# sudo make install
Setup Environment
-----------------
@@ -216,12 +216,14 @@ Setup Environment
5. Copy local.config.example to local.config and edit as needed. The TEST_DEV
and TEST_DIR are required.
+ # cp local.config.example local.config
+
6. (optional) Create fsgqa test users and groups:
- $ sudo useradd -m fsgqa
- $ sudo useradd 123456-fsgqa
- $ sudo useradd fsgqa2
- $ sudo groupadd fsgqa
+ # sudo useradd -m fsgqa
+ # sudo useradd 123456-fsgqa
+ # sudo useradd fsgqa2
+ # sudo groupadd fsgqa
The "123456-fsgqa" user creation step can be safely skipped if your system
doesn't support names starting with digits, only a handful of tests require
@@ -251,7 +253,7 @@ For example, to run the tests with loopback partitions:
The config for the setup above is:
- $ cat local.config
+ # cat local.config
export TEST_DEV=/dev/loop0
export TEST_DIR=/mnt/test
export SCRATCH_DEV=/dev/loop1
@@ -316,7 +318,7 @@ Tools specification:
test, if the kernel supports kmemleak.
- fsstress:
- Set FSSTRESS_AVOID and/or FSX_AVOID, which contain options added to
- the end of fsstresss and fsx invocations, respectively, in case you wish
+ the end of fsstress and fsx invocations, respectively, in case you wish
to exclude certain operational modes from these tests.
- core dumps:
- Set COREDUMP_COMPRESSOR to a compression program to compress crash dumps.
@@ -378,25 +380,27 @@ ______________________
Running tests:
- - cd xfstests
+ - # cd xfstests-dev
- By default the tests suite will run all the tests in the auto group. These
are the tests that are expected to function correctly as regression tests,
and it excludes tests that exercise conditions known to cause machine
failures (i.e. the "dangerous" tests).
- - ./check '*/001' '*/002' '*/003'
- - ./check '*/06?'
- - Groups of tests maybe ran by: ./check -g [group(s)]
+ # ./check
+ - Running specific tests:
+ # ./check '*/001' '*/002' '*/003'
+ # ./check '*/06?'
+ - Groups of tests maybe ran by: # ./check -g [group(s)]
See the tests/*/group.list files after building xfstests to learn about
each test's group memberships.
- If you want to run all tests regardless of what group they are in
- (including dangerous tests), use the "all" group: ./check -g all
- - To randomize test order: ./check -r [test(s)]
+ (including dangerous tests), use the "all" group: # ./check -g all
+ - To randomize test order: # ./check -r [test(s)]
- You can explicitly specify NFS/AFS/CIFS/OVERLAY, otherwise
the filesystem type will be autodetected from $TEST_DEV:
- - for running nfs tests: ./check -nfs [test(s)]
- - for running afs tests: ./check -afs [test(s)]
- - for running cifs/smb3 tests: ./check -cifs [test(s)]
- - for overlay tests: ./check -overlay [test(s)]
+ - for running nfs tests: # ./check -nfs [test(s)]
+ - for running afs tests: # ./check -afs [test(s)]
+ - for running cifs/smb3 tests: # ./check -cifs [test(s)]
+ - for overlay tests: # ./check -overlay [test(s)]
The TEST and SCRATCH partitions should be pre-formatted
with another base fs, where the overlay dirs will be created
@@ -438,7 +442,7 @@ Test script environment:
$TEST_DEV.
(b) mkfs a new XFS filesystem on $SCRATCH_DEV, and mount this
- on $SCRATCH_MNT. Call the the _require_scratch function
+ on $SCRATCH_MNT. Call the _require_scratch function
on startup if you require use of the scratch partition.
_require_scratch does some checks on $SCRATCH_DEV &
$SCRATCH_MNT and makes sure they're unmounted. You should
@@ -507,7 +511,7 @@ Test script environment:
initialise the test environment correctly, the the build infrastructure
also scans the test files for _begin_fstests invocations. It does this
to compile the group lists that are used to determine which tests to run
- when `check` is executed. In other words, test files files must call
+ when `check` is executed. In other words, test files must call
_begin_fstest with their intended groups or they will not be run.
However, because the build infrastructure also uses _begin_fstests as
--
2.51.1
next prev parent reply other threads:[~2025-11-13 11:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-13 11:51 [PATCH v2 0/1] README: improve README formatting and clarity Ravi Singh
2025-11-13 11:51 ` Ravi Singh [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-11-12 18:18 [PATCH] " Darrick J. Wong
2025-11-13 11:48 ` [PATCH v2 0/1] " Ravi Singh
2025-11-13 11:48 ` [PATCH v2 1/1] " Ravi Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251113115135.609307-2-ravising@redhat.com \
--to=ravising@redhat.com \
--cc=djwong@kernel.org \
--cc=fstests@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox