mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
summary: Check different completions
|
|
|
|
details: |
|
|
Check bash completion functionality.
|
|
|
|
# takes >6min to run in total
|
|
backends: [-autopkgtest]
|
|
|
|
# ppc64el disabled because of https://bugs.launchpad.net/snappy/+bug/1655594
|
|
# amazon-linux-2023: ships with gnupg2-minimal which is missing options
|
|
systems: [-ubuntu-core-*, -ubuntu-*-ppc64el, -amazon-linux-2023-*]
|
|
|
|
environment:
|
|
NAMES: /var/cache/snapd/names
|
|
|
|
prepare: |
|
|
tests.systemd stop-unit snapd.service snapd.socket
|
|
if [ -e "$NAMES" ]; then
|
|
mv "$NAMES" "$NAMES.orig"
|
|
fi
|
|
|
|
cat >"$NAMES" <<EOF
|
|
test-assumes
|
|
test-snapd-thumbnailer
|
|
test-snapd-tools
|
|
EOF
|
|
|
|
chattr +i "$NAMES"
|
|
systemctl start snapd.service
|
|
|
|
mkdir -p testdir
|
|
touch testdir/foo.snap
|
|
touch bar.snap
|
|
|
|
snap install core
|
|
snap install test-snapd-tools
|
|
|
|
#shellcheck source=tests/lib/mkpinentry.sh
|
|
. "$TESTSLIB"/mkpinentry.sh
|
|
#shellcheck source=tests/lib/random.sh
|
|
. "$TESTSLIB"/random.sh
|
|
|
|
kill_gpg_agent
|
|
expect -d -f key.exp0
|
|
|
|
restore: |
|
|
systemctl stop snapd.service
|
|
chattr -i "$NAMES"
|
|
rm "$NAMES"
|
|
if [ -e "$NAMES.orig" ]; then
|
|
mv "$NAMES.orig" "$NAMES"
|
|
fi
|
|
systemctl start snapd.service
|
|
|
|
debug: |
|
|
#shellcheck source=tests/lib/random.sh
|
|
. "$TESTSLIB"/random.sh
|
|
debug_random || true
|
|
|
|
execute: |
|
|
for i in *.exp; do
|
|
echo "$i"
|
|
expect -d -f "$i"
|
|
done
|