File: task.yaml

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (25 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (3)
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
summary: Test ubuntu-fan

details: |
    Check that fanctl exists in UC16 and it can create a fan bridge

# Ubuntu fan not available on ubuntu-core-18 and later, it is not shipped in the
# base snap
systems: [ubuntu-core-16-*]

prepare: |
    IP=$(ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | cut -d' ' -f1|head -1)
    fanctl up 241.0.0.0/8 "$IP/16"

restore: |
    fanctl down -e

execute: |
    echo "Test that fanctl exists"
    command -v fanctl

    echo "Test fanctl created fan bridge"
    ifconfig |MATCH ^fan-241

    # FIXME: port the docker tests once we have docker again
    # https://github.com/snapcore/snapd/blob/2.13/integration-tests/tests/ubuntufan_test.go#L88