[LTP] [PATCH v4 0/9] shell: df01.sh: $TST_ALL_FILESYSTEMS (.all_filesystems)

Petr Vorel pvorel@suse.cz
Fri Sep 2 15:37:01 CEST 2022


Hi,

Note, I'm not sure if changes in commit "tst_supported_fs: Implement
skip list" in tst_supported_fs.c will not be heavily rewritten due
tracking minimal filesystem usage. But if the commit looks ok, it'd be
nice to get this merged first.

Kind regards,
Petr

change v3->v4:
* dropped NFS tests change for now (plan to get to this soon, as that
  is the motivation for whole work)
* convert df01.sh (to at least something is using it)
* new variable $TST_FS_TYPE_FUSE
* rebased (some commits were merged)

new commits
worth to review
* df01.sh: Convert to TST_ALL_FILESYSTEMS=1
* tst_test.sh: Introduce TST_FS_TYPE_FUSE
some minor cleanup
* shell: Print mount command in tst_mount()
* shell API/tests: Require root for TST_{FORMAT,MOUNT}_DEVICE

Petr Vorel (9):
  shell: Print mount command in tst_mount()
  shell API/tests: Require root for TST_{FORMAT,MOUNT}_DEVICE
  tst_supported_fs: Implement skip list
  tst_supported_fs: Support skip list when query single fs
  shell: Add $TST_SKIP_FILESYSTEMS + tests
  tst_test.sh: Introduce TST_FS_TYPE_FUSE
  tst_test.sh: Add $TST_ALL_FILESYSTEMS
  shell: Add test for TST_ALL_FILESYSTEMS=1
  df01.sh: Convert to TST_ALL_FILESYSTEMS=1

 doc/shell-test-api.txt                        |  13 +-
 include/tst_fs.h                              |  10 ++
 lib/newlib_tests/shell/tst_all_filesystems.sh |  27 ++++
 lib/newlib_tests/shell/tst_format_device.sh   |   1 +
 lib/newlib_tests/shell/tst_mount_device.sh    |   1 +
 .../shell/tst_mount_device_tmpfs.sh           |   1 +
 .../shell/tst_skip_filesystems.sh             |  35 +++++
 .../shell/tst_skip_filesystems_skip.sh        |  17 ++
 lib/tst_supported_fs_types.c                  |  18 +++
 runtest/commands                              |   8 +-
 runtest/smoketest                             |   2 +-
 testcases/commands/df/df01.sh                 |  32 ++--
 testcases/lib/tst_supported_fs.c              |  56 +++++--
 testcases/lib/tst_test.sh                     | 147 ++++++++++++------
 testcases/misc/lvm/generate_lvm_runfile.sh    |   2 +-
 testcases/misc/lvm/prepare_lvm.sh             |   2 +-
 16 files changed, 282 insertions(+), 90 deletions(-)
 create mode 100755 lib/newlib_tests/shell/tst_all_filesystems.sh
 create mode 100755 lib/newlib_tests/shell/tst_skip_filesystems.sh
 create mode 100755 lib/newlib_tests/shell/tst_skip_filesystems_skip.sh

-- 
2.37.2



More information about the ltp mailing list