From Fedora Project Wiki

(add to i18n test case category)
(unify approach with the other test case and drop unnecessary steps, now I understand what's going on here)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests whether RPM weak dependency-based langpacks can be queried, installed and removed, and whether they install the appropriate packages.
|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'.
|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:
# To list the already installed language support, run the following command:
Line 12: Line 7:
#* {{command|dnf list available "langpacks*"}}
#* {{command|dnf list available "langpacks*"}}
# To list what packages will get installed for any language, run the following command:
# To list what packages will get installed for any language, run the following command:
#* {{command|dnf repoquery --whatsupplements langpacks-<new_locale_code>}}
#* {{command|dnf repoquery --whatsupplements langpacks-<locale_code>}}
# To add new language support, run the following command:
# To add new language support, run the following command:
#* {{command|dnf install langpacks-<new_locale_code>}}
#* {{command|dnf install langpacks-<locale_code>}}
# To remove installed language support, run the following command:
# To remove installed language support, run the following command:
#* {{command|dnf remove langpacks-<new_locale_code>}}
#* {{command|dnf remove langpacks-<locale_code>}}
|results=
|results=
# {{command|dnf list installed "langpacks*"}} should list any installed langpacks
# {{command|dnf list installed "langpacks*"}} should list any installed langpacks
# {{command|dnf list available "langpacks*"}} should list many results for different locales
# {{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 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-<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 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-<new_locale_code>}} should remove the langpack and all the packages that were installed along with it
# {{command|dnf remove langpacks-<locale_code>}} should remove {{package|langpacks-fr}} and all the support packages that were installed along with it
}}
}}



Revision as of 19:01, 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. 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

  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
  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, Package-x-generic-16.pnglibreoffice-langpack-fr should be installed, but not if Libreoffice is not installed
  5. dnf remove langpacks-<locale_code> should remove Package-x-generic-16.pnglangpacks-fr and all the support packages that were installed along with it