From Fedora Project Wiki
(add to DNF package test case category) |
(try to make the test at least vaguely make sense, improve formatting) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests whether langpacks can be installed and whether | |description=This test case tests whether RPM weak dependency-based langpacks can be queried, installed and removed, and whether they install the appropriate packages. | ||
|setup= | |setup= | ||
# Check if your system has langpacks-<current_locale_code> package installed by executing: | |||
#* {{command|rpm -qa langpacks*}} | |||
# If the package is not installed install it using dnf: | |||
#* {{command|dnf install langpacks-<current_locale_code>}} | |||
|actions= | |actions= | ||
# To list the already installed language support, run the following command: | |||
#* {{command|dnf list installed "langpacks*"}} | |||
# To check if any language support is available for another language, run the following command: | |||
#* {{command|dnf list available "langpacks*"}} | |||
# To list what packages will get installed for any language, run the following command: | |||
#* {{command|dnf repoquery --whatsupplements langpacks-<new_locale_code>}} | |||
# To add new language support, run the following command: | |||
#* {{command|dnf install langpacks-<new_locale_code>}} | |||
# To remove installed language support, run the following command: | |||
#* {{command|dnf remove langpacks-<new_locale_code>}} | |||
|results= | |results= | ||
# {{command|dnf list installed "langpacks*"}} should list any installed langpacks | |||
# {{command|dnf list available "langpacks*"}} should list many results for different locales | |||
{{ | # {{command|dnf repoquery --whatsupplements langpacks-<new_locale_code>}} should list packages that will be installed when the new langpack is installed | ||
# {{command|dnf install langpacks-<new_locale_code>}} should install support for a new language, including several packages that provide support for various components, e.g. {{code|man-pages-<new_locale_code>}} and {{code|glibc-langpack-<new_locale_code>}} | |||
# {{command|dnf remove langpacks-<new_locale_code>}} should remove the langpack and all the packages that were installed along with it | |||
< | |||
}} | }} | ||
[[Category:I18n_Desktop]] | [[Category:I18n_Desktop]] | ||
[[Category:Package_dnf_test_cases]] | [[Category:Package_dnf_test_cases]] |
Revision as of 18:37, 11 April 2016
Description
This test case tests whether RPM weak dependency-based langpacks can be queried, installed and removed, and whether they install the appropriate packages.
Setup
- Check if your system has langpacks-<current_locale_code> package installed by executing:
rpm -qa langpacks*
- If the package is not installed install it using dnf:
dnf install langpacks-<current_locale_code>
How to test
- To list the already installed language support, run the following command:
dnf list installed "langpacks*"
- To check if any language support is available for another language, run the following command:
dnf list available "langpacks*"
- To list what packages will get installed for any language, run the following command:
dnf repoquery --whatsupplements langpacks-<new_locale_code>
- To add new language support, run the following command:
dnf install langpacks-<new_locale_code>
- To remove installed language support, run the following command:
dnf remove langpacks-<new_locale_code>
Expected Results
dnf list installed "langpacks*"
should list any installed langpacksdnf list available "langpacks*"
should list many results for different localesdnf repoquery --whatsupplements langpacks-<new_locale_code>
should list packages that will be installed when the new langpack is installeddnf install langpacks-<new_locale_code>
should install support for a new language, including several packages that provide support for various components, e.g. man-pages-<new_locale_code> and glibc-langpack-<new_locale_code>dnf remove langpacks-<new_locale_code>
should remove the langpack and all the packages that were installed along with it