github.com/chipaca/snappy@v0.0.0-20210104084008-1f06296fe8ad/cmd/snap-confine/spread-tests/main/test-snap-runs/task.yaml (about)

     1  summary: Check that basic install works
     2  # This is blacklisted on debian because we first have to get the dpkg-vendor patches
     3  systems: [-debian-8]
     4  prepare: |
     5      snap install snapd-hacker-toolbelt
     6  execute: |
     7      cd /
     8      echo Run some hello-world stuff
     9      snapd-hacker-toolbelt.busybox echo "Hello World" | grep Hello
    10      snapd-hacker-toolbelt.busybox env | grep SNAP_NAME=snapd-hacker-toolbelt
    11      echo Ensure that we get an error if we try to abuse the sandbox
    12      if snapd-hacker-toolbelt.busybox touch /var/tmp/evil; then exit 1; fi
    13      dmesg -c
    14  restore: |
    15      snap remove --purge snapd-hacker-toolbelt