summary: Ensure that core(16) compatibility is there

details: |
    Ensure that when snap test-snapd-sh is installed, the core
    snap is pulled in, and check that test-snapd-sh sees the core16
    environment.

execute: |
    echo "Install test-snapd-sh (which uses the core snap)"
    snap install test-snapd-sh

    echo "Ensure that this pulled in core"
    snap list | MATCH "^core +"

    echo "Check test-snapd-sh see the core16 environment"
    test-snapd-sh.sh -c 'cat /etc/os-release' | MATCH "Ubuntu Core 16"
