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 (40 lines) | stat: -rw-r--r-- 1,655 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
summary: Test installing a component from the store

details: |
  Verifies that we can install a snap and components from the store at the same
  time.

systems: [ubuntu-16.04-64, ubuntu-18.04-64, ubuntu-2*, ubuntu-core-*, fedora-*]

prepare: |
  snap set system experimental.parallel-instances=true

restore: |
  snap unset system experimental.parallel-instances

execute: |
  snap install test-snap-with-components+one+two

  for comp in one two; do
      snap run test-snap-with-components ${comp}
  done

  # while this component is defined in the snap, it should not be installed
  not snap run test-snap-with-components three

  snap components test-snap-with-components | MATCH "test-snap-with-components\+one\s+installed\s+test"
  snap components test-snap-with-components | MATCH "test-snap-with-components\+two\s+installed\s+test"
  snap components test-snap-with-components | MATCH "test-snap-with-components\+three\s+available\s+test"

  # test installing a component for a snap that is already installed
  snap install test-snap-with-components+three

  for comp in one two three; do
      snap run test-snap-with-components ${comp}
  done

  snap install test-snap-with-components_key+one+two
  snap components test-snap-with-components_key | MATCH "test-snap-with-components_key\+one\s+installed\s+test"
  snap components test-snap-with-components_key | MATCH "test-snap-with-components_key\+two\s+installed\s+test"
  snap components test-snap-with-components_key | MATCH "test-snap-with-components_key\+three\s+available\s+test"
  snap components test-snap-with-components_key | NOMATCH "test-snap-with-components\+one\s+installed\s+test"