From Fedora Project Wiki
(added example) |
(note --whatsupplements is known broken) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests whether langpacks can be installed and whether it | |description=This test case tests whether RPM weak dependency-based langpacks can be queried, installed and removed, and whether they install the appropriate packages. For testing the feature rather than the availability of support for a given language, it is recommended to use a common locale, e.g. 'fr'. The results section assumes the use of 'fr'. | ||
|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-<locale_code>}} | |||
# To add new language support, run the following command: | |||
#* {{command|dnf install langpacks-<locale_code>}} | |||
# To remove installed language support, run the following command: | |||
#* {{command|dnf remove langpacks-<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-fr}} should show a list of the packages that may be installed to provide French support for various applications and components, but '''NOTE''' this is '''[[rhbug:1303311|known broken]]''' before {{package|libsolv}} 0.6.20 | ||
# {{command|dnf install langpacks-fr}} should install all packages that provide French support for installed applications and components (but not packages relating to non-installed applications and components). For e.g. if Libreoffice is installed, {{package|libreoffice-langpack-fr}} should be installed, but not if Libreoffice is not installed | |||
# {{command|dnf remove langpacks-<locale_code>}} should remove {{package|langpacks-fr}} and all the support packages that were installed along with it | |||
}} | }} | ||
[[Category:I18n_Desktop]] | [[Category:I18n_Desktop]] | ||
[[Category:I18n_Test_Cases]] | |||
[[Category:Package_dnf_test_cases]] | |||
[[Category:Package_langpacks_test_cases]] |
Revision as of 07:18, 12 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. For testing the feature rather than the availability of support for a given language, it is recommended to use a common locale, e.g. 'fr'. The results section assumes the use of 'fr'.
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-<locale_code>
- To add new language support, run the following command:
dnf install langpacks-<locale_code>
- To remove installed language support, run the following command:
dnf remove langpacks-<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-fr
should show a list of the packages that may be installed to provide French support for various applications and components, but NOTE this is known broken beforelibsolv
0.6.20dnf install langpacks-fr
should install all packages that provide French support for installed applications and components (but not packages relating to non-installed applications and components). For e.g. if Libreoffice is installed,libreoffice-langpack-fr
should be installed, but not if Libreoffice is not installeddnf remove langpacks-<locale_code>
should removelangpacks-fr
and all the support packages that were installed along with it