From Fedora Project Wiki

(init commit)
 
(Update this for dnf5 output behaviour)
 
(16 intermediate revisions by 3 users 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 can show available language translations for your current locale.
|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 we are using langpacks-fr as an example.
|setup=
* Check if your system has langpacks-<current_locale_code> package installed by executing:
:<pre>rpm -qa langpacks*</pre>
* If the package is not installed install it using dnf: <pre>dnf install langpacks-<required_langpacks_locale_code></pre>
|actions=
|actions=
 
# To list the already installed language support, run the following command:
* Following steps are to test langpacks by using dnf commands
#* {{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=
For testing langpacks with rpm weak dependencies by adding/removing language support
# {{command|dnf list --installed "langpacks*"}} should list any installed langpacks.
 
# {{command|dnf list --available "langpacks*"}} should list many results for different locales. The output shows green colored line means those packages are already installed but non-green line packages are actually available for installation
{{admon/note|You need to use meta-packages for langpacks.}}
# {{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.
 
# {{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, <code>libreoffice-langpack-fr</code> should be installed, but not if Libreoffice is not installed.
# {{command|dnf remove langpacks-fr}} should remove <code>langpacks-fr</code> 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]]

Latest revision as of 09:11, 9 September 2024

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 we are using langpacks-fr as an example.


How to test

  1. To list the already installed language support, run the following command:
    • dnf list --installed "langpacks*"
  2. To check if any language support is available for another language, run the following command:
    • dnf list --available "langpacks*"
  3. To list what packages will get installed for any language, run the following command:
    • dnf repoquery --whatsupplements langpacks-<locale_code>
  4. To add new language support, run the following command:
    • dnf install langpacks-<locale_code>
  5. To remove installed language support, run the following command:
    • dnf remove langpacks-<locale_code>

Expected Results

  1. dnf list --installed "langpacks*" should list any installed langpacks.
  2. dnf list --available "langpacks*" should list many results for different locales. The output shows green colored line means those packages are already installed but non-green line packages are actually available for installation
  3. 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.
  4. 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, libreoffice-langpack-fr should be installed, but not if Libreoffice is not installed.
  5. dnf remove langpacks-fr should remove langpacks-fr and all the support packages that were installed along with it.