From Fedora Project Wiki

Revision as of 18:45, 11 April 2016 by Adamwill (talk | contribs) (add to i18n test case category)

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

  1. Check if your system has langpacks-<current_locale_code> package installed by executing:
    • rpm -qa langpacks*
  2. If the package is not installed install it using dnf:
    • dnf install langpacks-<current_locale_code>

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-<new_locale_code>
  4. To add new language support, run the following command:
    • dnf install langpacks-<new_locale_code>
  5. To remove installed language support, run the following command:
    • dnf remove langpacks-<new_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-<new_locale_code> should list packages that will be installed when the new langpack is installed
  4. dnf 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>
  5. dnf remove langpacks-<new_locale_code> should remove the langpack and all the packages that were installed along with it