diff --git a/tests/test-completion.sh b/tests/test-completion.sh index 837c8b59..c4a02a04 100755 --- a/tests/test-completion.sh +++ b/tests/test-completion.sh @@ -25,7 +25,7 @@ set -euo pipefail # This test looks for specific localized strings. export LC_ALL=C -echo "1..13" +echo "1..17" setup_repo install_repo @@ -171,3 +171,53 @@ for cmd in history info list run update \ done echo "ok complete non-NO_DIR commands" + +${FLATPAK} complete "flatpak list --columns=" 24 "--columns=" | sort > complete_out +(diff -u complete_out - || exit 1) < complete_out +assert_file_empty complete-out + +echo "ok complete list --columns=all" + +${FLATPAK} complete "flatpak list --columns=hel" 27 "--columns=hel" | sort > complete_out +(diff -u complete_out - || exit 1) < complete_out +(diff -u complete_out - || exit 1) <