Add some flatpak tests
This commit is contained in:
parent
8f425b595b
commit
9dfbd411de
1 changed files with 10 additions and 9 deletions
19
tests.sh
19
tests.sh
|
|
@ -44,12 +44,19 @@ poetry run \
|
||||||
--format json | jq
|
--format json | jq
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get remove -y --purge cowsay
|
DEBIAN_FRONTEND=noninteractive apt-get remove -y --purge cowsay
|
||||||
|
|
||||||
# Common simple packages mode (is tested later)
|
# Ensure some flatpaks are installed
|
||||||
|
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
|
flatpak install -y flathub org.onionshare.OnionShare
|
||||||
|
|
||||||
poetry run \
|
poetry run \
|
||||||
enroll manifest \
|
enroll manifest \
|
||||||
--harvest "${BUNDLE_DIR}2" \
|
--harvest "${BUNDLE_DIR}2" \
|
||||||
--out "${ANSIBLE_DIR}2" \
|
--out "${ANSIBLE_DIR}2"
|
||||||
--merge-simple-packages
|
|
||||||
|
# Test the presence of OnionShare
|
||||||
|
builtin cd "${ANSIBLE_DIR}2"
|
||||||
|
grep -r org.onionshare.OnionShare "${ANSIBLE_DIR}2/roles"
|
||||||
|
ansible-playbook playbook.yml -i "localhost," -c local --check --diff --tags role_flatpak
|
||||||
|
|
||||||
# Ansible test
|
# Ansible test
|
||||||
builtin cd "${ANSIBLE_DIR}"
|
builtin cd "${ANSIBLE_DIR}"
|
||||||
|
|
@ -58,9 +65,3 @@ ansible-lint "${ANSIBLE_DIR}"
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
ansible-playbook playbook.yml -i "localhost," -c local --check --diff
|
ansible-playbook playbook.yml -i "localhost," -c local --check --diff
|
||||||
|
|
||||||
# Test the --merge-simple-packages mode
|
|
||||||
builtin cd "${ANSIBLE_DIR}2"
|
|
||||||
ls "${ANSIBLE_DIR}2/roles"
|
|
||||||
|
|
||||||
ansible-playbook playbook.yml -i "localhost," -c local --check --diff
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue