From 5d9d03d875543291dcdb0fa6add9b9a1a42ec724 Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Wed, 10 Nov 2021 15:35:04 -0800 Subject: tests: test search command This is basically what we already have in test-oci-registry.sh but for the non-OCI case. --- tests/test-repo.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') 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" -- cgit v1.2.1