Debian Codegraph @

tests/ts/findmnt/filterQ

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # This file is part of util-linux.
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14
15 TS_TOPDIR="${0%/*}/../.."
16 TS_DESC="filterQ"
17
18 . "$TS_TOPDIR"/functions.sh
19 ts_init "$*"
20
21 ts_check_test_command "$TS_CMD_FINDMNT"
22
23 ts_init_subtest "types"
24 $TS_CMD_FINDMNT --filter 'FSTYPE == "ext3"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
25 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
26 ts_finalize_subtest
27
28 ts_init_subtest "types-multi"
29 $TS_CMD_FINDMNT --filter 'FSTYPE =~ "ext[34]"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
30 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
31 ts_finalize_subtest
32
33 ts_init_subtest "types-neg"
34 $TS_CMD_FINDMNT --filter 'FSTYPE !~ "ext[34]"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
35 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
36 ts_finalize_subtest
37
38 ts_init_subtest "options"
39 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<relatime\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
40 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
41 ts_finalize_subtest
42
43 ts_init_subtest "options-name"
44 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<fd\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
45 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
46 ts_finalize_subtest
47
48 ts_init_subtest "options-nameval"
49 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<fd=22\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
50 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
51 ts_finalize_subtest
52
53 ts_init_subtest "options-nameval-neg"
54 $TS_CMD_FINDMNT --filter 'OPTIONS !~ "\<fd=22\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
55 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
56 ts_finalize_subtest
57
58 ts_init_subtest "options-nameval-multi"
59 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<ptmxmode=000\>" && OPTIONS =~ "\<mode=620\>" && OPTIONS =~ "\<gid=5\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
60 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
61 ts_finalize_subtest
62
63 ts_init_subtest "options-neg"
64 $TS_CMD_FINDMNT --filter 'OPTIONS !~ "\<relatime\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
65 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
66 ts_finalize_subtest
67
68 ts_init_subtest "options-no"
69 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<noatime\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
70 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
71 ts_finalize_subtest
72
73 ts_init_subtest "options-no-multi"
74 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<nosuid\>" && OPTIONS =~ "\<nodev\>" && OPTIONS =~ "\<blkio\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> $TS_OUTPUT
75 echoscip-shell system . . echo. rc=$? >> $TS_OUTPUT
76
77 ts_finalize