linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/27] ext4: add lots of KUnit tests!
@ 2026-11-12  4:06 Theodore Ts'o
  2026-11-12  4:06 ` [PATCH 01/27] ext4: add KUinit tests for fs/ext4/extents_status.c Theodore Ts'o
                   ` (26 more replies)
  0 siblings, 27 replies; 55+ messages in thread
From: Theodore Ts'o @ 2026-11-12  4:06 UTC (permalink / raw)
  To: Ext4 Developers List; +Cc: Theodore Ts'o

These unit tests were written using the writing-kunit-tests.md
prompt[1], and then lightly reviewed by a human with only a few
fix-ups needed.

[1] https://drive.google.com/file/d/1MVZIhlG79kTRX_A65phWiZkTPJEtypsL/view

While the LLM was busily generating these unit tests, it also found
around two dozen potential bug fixes[2].  Those will be sent in a
separate series.

[2] https://drive.google.com/file/d/1pnTKAVf9pAoCK27619uP4_3_hpE04SkR/view

Hopefully extending ext4's Kunit coverage will make it easier to
sanity check the flood of AI generated patch submissions.  IOW, since
these tests were created Gemeni Pro, I'm hoping that we can use fire
to fight fire.  :-)

So as I process the AI slop backlog, my plan is to do trial merges to
determine whether the patches break the unit tests or not.  Which to
be fair, might be an indication of breakage of the unit tests, and not
necessarily a bug in the patches under review.

The patches in this series are available at the ext4.git tree on the
branch ext4-kunit-tests[3].  The patch series was originally based on
v7.3-rc4, so you want to try merging with with v7.4-rc2 or later, use
the branch ext4-kinit-tests-merge[4].

[3] https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/log/?h=ext4-kunit-tests
[4] https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/log/?h=ext4-kunit-tests-merge

Theodore Ts'o (27):
  ext4: add KUinit tests for fs/ext4/extents_status.c
  ext4: add KUnit tests for fs/ext4/extents.c
  ext4: add KUnit tests for ext4_ext_split() leaf and index splitting
  ext4: add KUnit tests for fs/ext4/xattr.c
  ext4: add KUnit tests for fs/ext4/namei.c
  ext4: expand KUnit tests for fs/ext4/mballoc.c
  ext4: add KUnit tests for fs/ext4/inline.c
  ext4: zero s_fc_replay_state in ext4_fc_replay_cleanup()
  ext4: add KUnit tests for fs/ext4/fast_commit.c
  ext4: expand KUnit tests for fs/ext4/inode.c
  ext4: add KUnit tests for fs/ext4/ialloc.c
  ext4: add KUnit tests for fs/ext4/balloc.c
  ext4: add KUnit tests for fs/ext4/orphan.c
  ext4: add KUnit tests for fs/ext4/block_validity.c
  ext4: check multi-block overlap on left traversal in add_system_zone()
  ext4: enable full feature coverage in fs/ext4/.kunitconfig
  ext4: add KUnit tests for fs/ext4/super.c
  ext4: add KUnit tests for fs/ext4/sysfs.c
  ext4: add KUnit tests for fs/ext4/ioctl.c
  ext4: add KUnit tests for fs/ext4/resize.c
  ext4: add KUnit tests for fs/ext4/migrate.c
  ext4: add KUnit tests for fs/ext4/indirect.c
  ext4: expand KUnit tests in fs/ext4/extents-test.c for file range
    operations
  ext4: add KUnit tests for fs/ext4/fsmap.c
  ext4: add KUnit tests for fs/ext4/move_extent.c
  ext4: add KUnit tests for fs/ext4/mmp.c
  ext4: add KUnit tests for fs/ext4/dir.c

 fs/ext4/.kunitconfig          |    7 +
 fs/ext4/Makefile              |   12 +-
 fs/ext4/balloc-test.c         | 2362 ++++++++++++++++++++++
 fs/ext4/balloc.c              |   11 +-
 fs/ext4/bitmap.c              |    5 +
 fs/ext4/block_validity-test.c | 1595 +++++++++++++++
 fs/ext4/block_validity.c      |   11 +-
 fs/ext4/crypto.c              |    4 +
 fs/ext4/dir-test.c            |  992 ++++++++++
 fs/ext4/dir.c                 |   37 +
 fs/ext4/ext4.h                |  251 ++-
 fs/ext4/ext4_extents.h        |   21 +
 fs/ext4/ext4_jbd2.c           |   17 +
 fs/ext4/extents-test.c        | 2601 ++++++++++++++++++++++++-
 fs/ext4/extents.c             |   94 +-
 fs/ext4/extents_status-test.c | 1640 ++++++++++++++++
 fs/ext4/extents_status.c      |   22 +
 fs/ext4/fast_commit-test.c    | 2668 +++++++++++++++++++++++++
 fs/ext4/fast_commit.c         |  181 +-
 fs/ext4/fsmap-test.c          |  787 ++++++++
 fs/ext4/fsmap.c               |    3 +
 fs/ext4/ialloc-test.c         | 2714 ++++++++++++++++++++++++++
 fs/ext4/ialloc.c              |   96 +-
 fs/ext4/indirect-test.c       | 1270 ++++++++++++
 fs/ext4/indirect.c            |   18 +-
 fs/ext4/inline-test.c         | 1839 ++++++++++++++++++
 fs/ext4/inline.c              |   34 +-
 fs/ext4/inode-test.c          | 3460 ++++++++++++++++++++++++++++++++-
 fs/ext4/inode.c               |  191 +-
 fs/ext4/ioctl-test.c          | 1169 +++++++++++
 fs/ext4/ioctl.c               |  249 ++-
 fs/ext4/mballoc-test.c        | 1868 +++++++++++++++++-
 fs/ext4/mballoc.c             |  214 +-
 fs/ext4/mballoc.h             |   49 +
 fs/ext4/migrate-test.c        | 1064 ++++++++++
 fs/ext4/migrate.c             |   11 +
 fs/ext4/mmp-test.c            |  661 +++++++
 fs/ext4/mmp.c                 |  117 +-
 fs/ext4/move_extent-test.c    |  997 ++++++++++
 fs/ext4/move_extent.c         |   22 +
 fs/ext4/namei-test.c          | 2314 ++++++++++++++++++++++
 fs/ext4/namei.c               |  342 ++--
 fs/ext4/namei.h               |  213 ++
 fs/ext4/orphan-test.c         | 2364 ++++++++++++++++++++++
 fs/ext4/orphan.c              |   12 +
 fs/ext4/page-io.c             |    1 +
 fs/ext4/resize-test.c         | 1341 +++++++++++++
 fs/ext4/resize.c              |  102 +-
 fs/ext4/super-test.c          | 1341 +++++++++++++
 fs/ext4/super.c               |  276 ++-
 fs/ext4/sysfs-test.c          |  653 +++++++
 fs/ext4/sysfs.c               |   55 +
 fs/ext4/xattr-test.c          | 1813 +++++++++++++++++
 fs/ext4/xattr.c               |   30 +-
 fs/ext4/xattr.h               |    2 +
 fs/ext4/xattr_hurd.c          |    4 +
 fs/ext4/xattr_security.c      |    4 +
 fs/ext4/xattr_trusted.c       |    4 +
 fs/ext4/xattr_user.c          |    4 +
 59 files changed, 39827 insertions(+), 412 deletions(-)
 create mode 100644 fs/ext4/balloc-test.c
 create mode 100644 fs/ext4/block_validity-test.c
 create mode 100644 fs/ext4/dir-test.c
 create mode 100644 fs/ext4/extents_status-test.c
 create mode 100644 fs/ext4/fast_commit-test.c
 create mode 100644 fs/ext4/fsmap-test.c
 create mode 100644 fs/ext4/ialloc-test.c
 create mode 100644 fs/ext4/indirect-test.c
 create mode 100644 fs/ext4/inline-test.c
 create mode 100644 fs/ext4/ioctl-test.c
 create mode 100644 fs/ext4/migrate-test.c
 create mode 100644 fs/ext4/mmp-test.c
 create mode 100644 fs/ext4/move_extent-test.c
 create mode 100644 fs/ext4/namei-test.c
 create mode 100644 fs/ext4/namei.h
 create mode 100644 fs/ext4/orphan-test.c
 create mode 100644 fs/ext4/resize-test.c
 create mode 100644 fs/ext4/super-test.c
 create mode 100644 fs/ext4/sysfs-test.c
 create mode 100644 fs/ext4/xattr-test.c

base-commit: 93f51579e7df248780214094418f205253383cc5
-- 
2.56.0.542.g3ef89b7020-goog


^ permalink raw reply	[flat|nested] 55+ messages in thread

end of thread, other threads:[~2026-11-12  4:46 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  4:06 [PATCH 00/27] ext4: add lots of KUnit tests! Theodore Ts'o
2026-11-12  4:06 ` [PATCH 01/27] ext4: add KUinit tests for fs/ext4/extents_status.c Theodore Ts'o
2026-11-12  4:18   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 02/27] ext4: add KUnit tests for fs/ext4/extents.c Theodore Ts'o
2026-11-12  4:28   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 03/27] ext4: add KUnit tests for ext4_ext_split() leaf and index splitting Theodore Ts'o
2026-11-12  4:15   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 04/27] ext4: add KUnit tests for fs/ext4/xattr.c Theodore Ts'o
2026-11-12  4:26   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 05/27] ext4: add KUnit tests for fs/ext4/namei.c Theodore Ts'o
2026-11-12  4:21   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 06/27] ext4: expand KUnit tests for fs/ext4/mballoc.c Theodore Ts'o
2026-11-12  4:26   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 07/27] ext4: add KUnit tests for fs/ext4/inline.c Theodore Ts'o
2026-11-12  4:29   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 08/27] ext4: zero s_fc_replay_state in ext4_fc_replay_cleanup() Theodore Ts'o
2026-11-12  4:16   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 09/27] ext4: add KUnit tests for fs/ext4/fast_commit.c Theodore Ts'o
2026-11-12  4:28   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 10/27] ext4: expand KUnit tests for fs/ext4/inode.c Theodore Ts'o
2026-11-12  4:36   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 11/27] ext4: add KUnit tests for fs/ext4/ialloc.c Theodore Ts'o
2026-11-12  4:25   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 12/27] ext4: add KUnit tests for fs/ext4/balloc.c Theodore Ts'o
2026-11-12  4:16   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 13/27] ext4: add KUnit tests for fs/ext4/orphan.c Theodore Ts'o
2026-11-12  4:18   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 14/27] ext4: add KUnit tests for fs/ext4/block_validity.c Theodore Ts'o
2026-11-12  4:21   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 15/27] ext4: check multi-block overlap on left traversal in add_system_zone() Theodore Ts'o
2026-11-12  4:10   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 16/27] ext4: enable full feature coverage in fs/ext4/.kunitconfig Theodore Ts'o
2026-11-12  4:24   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 17/27] ext4: add KUnit tests for fs/ext4/super.c Theodore Ts'o
2026-11-12  4:27   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 18/27] ext4: add KUnit tests for fs/ext4/sysfs.c Theodore Ts'o
2026-11-12  4:32   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 19/27] ext4: add KUnit tests for fs/ext4/ioctl.c Theodore Ts'o
2026-11-12  4:35   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 20/27] ext4: add KUnit tests for fs/ext4/resize.c Theodore Ts'o
2026-11-12  4:34   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 21/27] ext4: add KUnit tests for fs/ext4/migrate.c Theodore Ts'o
2026-11-12  4:37   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 22/27] ext4: add KUnit tests for fs/ext4/indirect.c Theodore Ts'o
2026-11-12  4:46   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 23/27] ext4: expand KUnit tests in fs/ext4/extents-test.c for file range operations Theodore Ts'o
2026-11-12  4:34   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 24/27] ext4: add KUnit tests for fs/ext4/fsmap.c Theodore Ts'o
2026-11-12  4:30   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 25/27] ext4: add KUnit tests for fs/ext4/move_extent.c Theodore Ts'o
2026-11-12  4:36   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 26/27] ext4: add KUnit tests for fs/ext4/mmp.c Theodore Ts'o
2026-11-12  4:29   ` sashiko-bot
2026-11-12  4:06 ` [PATCH 27/27] ext4: add KUnit tests for fs/ext4/dir.c Theodore Ts'o
2026-11-12  4:41   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).