File: task.yaml

package info (click to toggle)
snapd 2.71-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,536 kB
  • sloc: ansic: 16,114; sh: 16,105; python: 9,941; makefile: 1,890; exp: 190; awk: 40; xml: 22
file content (38 lines) | stat: -rw-r--r-- 1,570 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
summary: the essential manual pages are installed by the native package

details: |
    The snapd command comes with a number of manual pages for some of the more
    technical programs such as snap-confine and snap-update-ns, but also for the
    user-facing program snap.

    The test ensures that the manual pages are installed on classic systems.

# core systems don't ship man or manual pages
systems: [-ubuntu-core-*]

execute: |

    # This check for opensuse is done to avoid an issue on man command where
    # "nothing appropriate" message is shown when the "--what" parameter
    # is used for packages installed after man is installed. A workaround is
    # to the machine or force a cache consistency calling the man page with '-u'
    # This issue happens with any package, not just with snap related ones
    # The command "man snap" works well in this case (man 2.6.6)
    case "$SPREAD_SYSTEM" in
        opensuse-*|arch-*|amazon-*|centos-*)
            for manpage in snap snap-confine snap-discard-ns; do
                if ! LC_ALL=C man -u --where $manpage; then
                    echo "Expected to see manual page path for $manpage"
                    exit 1
                fi
              done
              ;;
        *)
            for manpage in snap snap-confine snap-discard-ns; do
                if ! LC_ALL=C man --what $manpage; then
                    echo "Expected to see manual page for $manpage"
                    exit 1
                fi
            done
    esac
# TODO: add manual pages for snapctl, snap-exec and snapd