[LTP] [PATCH v4 5/9] shell: Add $TST_SKIP_FILESYSTEMS + tests

Petr Vorel pvorel@suse.cz
Sat Sep 3 00:14:39 CEST 2022


Hi all,

> C API struct tst_test skip_filesystems member equivalent.

> Now only running on single filesystem (will be improved in the next
> commit)

>  doc/shell-test-api.txt                        |  2 ++
>  .../shell/tst_skip_filesystems.sh             | 35 +++++++++++++++++++
>  .../shell/tst_skip_filesystems_skip.sh        | 17 +++++++++
>  testcases/lib/tst_test.sh                     |  6 ++++
>  4 files changed, 60 insertions(+)
>  create mode 100755 lib/newlib_tests/shell/tst_skip_filesystems.sh
>  create mode 100755 lib/newlib_tests/shell/tst_skip_filesystems_skip.sh

...
> +++ b/lib/newlib_tests/shell/tst_skip_filesystems.sh
> @@ -0,0 +1,35 @@
> +#!/bin/sh
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +# Copyright (c) 2022 Petr Vorel <pvorel@suse.cz>
> +
> +TST_MOUNT_DEVICE=1
> +TST_NEEDS_ROOT=1
> +TST_FS_TYPE=ext4
> +TST_TESTFUNC=test
> +TST_SKIP_FILESYSTEMS="btrfs,ext2,ext3,xfs,vfat,exfat,ntfs,tmpfs"

I suppose I should move this commit after following commit "tst_test.sh:
Introduce TST_FS_TYPE_FUSE" (swap them) so that I can here add "fuse" into
TST_SKIP_FILESYSTEMS.

Kind regards,
Petr


More information about the ltp mailing list