linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] btrfs-progs: tests: Enahance INSTRUMENT coverage
@ 2020-04-06  6:11 Qu Wenruo
  2020-04-06  6:11 ` [PATCH v2 1/2] btrfs-progs: tests: Don't use run_check_stdout without filtering Qu Wenruo
  2020-04-06  6:11 ` [PATCH v2 2/2] btrfs-progs: tests: Introduce expand_command() to inject aruguments more accurately Qu Wenruo
  0 siblings, 2 replies; 7+ messages in thread
From: Qu Wenruo @ 2020-04-06  6:11 UTC (permalink / raw)
  To: linux-btrfs

This patchset will enhance INSTRUMENT coverage for all btrfs related
commands.

Since now INSTRUMENT would also cover a lot of btrfs inspect-dump
comands, fix some test cases where INSTRUMENT output could easily
pollute them.


Now fsck/convert/misc/mkfs all pass with
INSTRUMENT="valgrind --leak-check=full".

Changelog:
v2:
- Pass INSTRUMENT as space split command

- Unset previous cmmd_array in expand_command()
  Instead of unsetting it.

- Use local variable @i in expand_command()
  To fix misc/004

- Add extra commands for INSTRUMENT coverage
  This incldues btrfstune, btrfs-corrupt-block, btrfs-image,
  btrfs-select-super, btrfs-find-root.

- Fix test cases which uses run_check_stdout without filtering

Qu Wenruo (2):
  btrfs-progs: tests: Don't use run_check_stdout without filtering
  btrfs-progs: tests: Introduce expand_command() to inject aruguments
    more accurately

 tests/common                                  | 179 +++++++++---------
 tests/misc-tests/004-shrink-fs/test.sh        |   2 +-
 .../009-subvolume-sync-must-wait/test.sh      |   2 +-
 .../013-subvolume-sync-crash/test.sh          |   2 +-
 .../024-inspect-internal-rootid/test.sh       |  14 +-
 .../031-qgroup-parent-child-relation/test.sh  |   4 +-
 6 files changed, 102 insertions(+), 101 deletions(-)

-- 
2.26.0


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

end of thread, other threads:[~2020-04-09 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06  6:11 [PATCH v2 0/2] btrfs-progs: tests: Enahance INSTRUMENT coverage Qu Wenruo
2020-04-06  6:11 ` [PATCH v2 1/2] btrfs-progs: tests: Don't use run_check_stdout without filtering Qu Wenruo
2020-04-06 16:56   ` David Sterba
2020-04-06 22:44     ` Qu Wenruo
2020-04-09 15:41       ` David Sterba
2020-04-09 15:45         ` David Sterba
2020-04-06  6:11 ` [PATCH v2 2/2] btrfs-progs: tests: Introduce expand_command() to inject aruguments more accurately Qu Wenruo

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).