| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | exec 2>&1 |
| 5 | |
| 6 | # Ubuntu provides internet access via a proxy, but libostree doesn't need |
| 7 | # that. However, libostree also doesn't support no_proxy, so it will try |
| 8 | # to use Ubuntu's proxy for localhost, and fail to reach itself. |
| 9 | unset ftp_proxy |
| 10 | unset http_proxy |
| 11 | unset https_proxy |
| 12 | unset no_proxy |
| 13 | |
| 14 | # Don't pollute the home directory unless this looks like a dedicated |
| 15 | # autopkgtest environment |
| 16 | case "$(id -nu)@$(hostname)" in |
| 17 | (adt@*|debci@*|user@host) |
| 18 | install -d ~/.flatpak-tests/ |
| 19 | ;; |
| 20 | esac |
| 21 | |
| 22 | # Deliberately word-splitting list of tests: |
| 23 | # shellcheck disable=SC2046 |
| 24 | exec gnome-desktop-testing-runner $( |
| 25 | # d (the directory) is deliberately ignored: |
| 26 | # shellcheck disable=SC2034 |
| 27 | gnome-desktop-testing-runner -l Flatpak | while read -r t d; do |
| 28 | case "$t" in |
| 29 | (Flatpak/test-oci*) |
| 30 | ;; |
| 31 | (Flatpak/test-update-portal*) |
| 32 | ;; |
| 33 | (*) |
| 34 | echo "$t" |
| 35 | ;; |
| 36 | esac |
| 37 | done |
| 38 | ) |