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 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.
|setup=
|setup=
* Check if your system has langpacks-<current_locale_code> package installed by executing:  
# Check if your system has langpacks-<current_locale_code> package installed by executing:  
:<pre>rpm -qa langpacks*</pre>
#* {{command|rpm -qa langpacks*}}
* If the package is not installed install it using dnf: <pre>dnf install langpacks-<required_langpacks_locale_code></pre>
# 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:
* Following steps are to test langpacks by using dnf commands
#* {{command|dnf list installed "langpacks*"}}
:1) To list the already installed language support, run the following command
# To check if any language support is available for another language, run the following command:
::<pre>dnf list installed "langpacks*"</pre>
#* {{command|dnf list available "langpacks*"}}
 
# To list what packages will get installed for any language, run the following command:
:2) To check if any language support is available for your language, run the following command
#* {{command|dnf repoquery --whatsupplements langpacks-<new_locale_code>}}
::<pre>dnf list available "langpacks*"</pre>
# To add new language support, run the following command:
 
#* {{command|dnf install langpacks-<new_locale_code>}}
:3) To list what packages will get installed for any language, run the following command
# To remove installed language support, run the following command:
::<pre>dnf repoquery --whatsupplements langpacks-<locale_code></pre>
#* {{command|dnf remove langpacks-<new_locale_code>}}
 
:4) To add new language support, run the following command
::<pre>dnf install langpacks-<locale_code></pre>
 
:5) To remove installed language support, run the following command
::<pre>dnf remove langpacks-<locale_code></pre>
 
|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
{{admon/note|You need to use meta-packages for langpacks.}}
# {{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>}}
:1) To check if French language support is available use command
# {{command|dnf remove langpacks-<new_locale_code>}} should remove the langpack and all the packages that were installed along with it
::<pre>dnf list available langpacks-fr</pre>
:: If you see langpacks-fr package listed in the output then you have French language support available for installation.
 
 
:2) To list what packages will get installed for French language, run following command
::<pre>dnf repoquery --whatsupplements langpacks-fr</pre>
::you will see output like
<pre>
 
</pre>
 
:3) To add French language support
::<pre>dnf install langpacks-fr</pre>
 
:4) To remove installed French language support run following command
::<pre>dnf remove langpacks-fr</pre>
}}
}}


[[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

  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