diff options
author | Phaedrus Leeds <mwleeds@protonmail.com> | 2021-11-10 15:35:04 -0800 |
---|---|---|
committer | Phaedrus Leeds <mwl458@gmail.com> | 2022-02-17 08:29:20 -0600 |
commit | 5d9d03d875543291dcdb0fa6add9b9a1a42ec724 (patch) | |
tree | 9de40646f52f0eb984c82d61ec3b76066524776e /tests | |
parent | 2af0c17297c3560c4b7c6e933b25d389744dc003 (diff) | |
download | flatpak-5d9d03d875543291dcdb0fa6add9b9a1a42ec724.tar.gz |
tests: test search command
This is basically what we already have in test-oci-registry.sh but for
the non-OCI case.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-repo.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-repo.sh b/tests/test-repo.sh index 947d4c55..1475c896 100644 --- a/tests/test-repo.sh +++ b/tests/test-repo.sh @@ -24,7 +24,7 @@ set -euo pipefail skip_without_bwrap skip_revokefs_without_fuse -echo "1..42" +echo "1..43" #Regular repo setup_repo @@ -105,6 +105,12 @@ assert_has_file $FL_DIR/appstream/test-repo/$ARCH/active/appstream.xml.gz ok "update appstream" +# Test that 'flatpak search' works +${FLATPAK} search Hello > search-results +assert_file_has_content search-results "Print a greeting" + +ok "search" + if [ x${USE_COLLECTIONS_IN_CLIENT-} != xyes ] ; then install_repo test-no-gpg ok "install without gpg key" |