From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case is to test dnf5 repoquery / repolist commands |setup=Install the pre-release version of Fedora 38 |actions= * Install dnf5 using ‘dnf -y install dnf5’ * Run dnf5 repolist --all * Run dnf5 repolist * Run dnf5 repolist --disabled * Compare the installed packages output from dnf5 repoquery --installed with output from rpm. ** <nowiki>diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:% {VERSION}-%{RELEASE}.%{ARCH}\n" -...") |
(Mention repoinfo and some more rq arguments) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|setup=Install the pre-release version of Fedora 38 | |setup=Install the pre-release version of Fedora 38 | ||
|actions= | |actions= | ||
* Install dnf5 using | * Install dnf5 using `sudo dnf -y install dnf5` | ||
* Run dnf5 repolist --all | * Run `dnf5 repolist --all` | ||
* Run dnf5 repolist | * Run `dnf5 repolist` | ||
* Run dnf5 repolist --disabled | * Run `dnf5 repolist --disabled` | ||
* Compare the installed packages output from dnf5 repoquery --installed with output from rpm. | * Run `dnf5 repoinfo` | ||
* Compare the installed packages output from `dnf5 repoquery --installed` with output from `rpm`. | |||
* Pick any package and query the information about it using dnf5 repoquery --info <package> | <pre> | ||
* Exploratory testing: explore the help section of dnf5 repoquery and run it with options of your choice | diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:%{VERSION}-%{RELEASE}.%{ARCH}\n" -qa | sort) \ | ||
<(dnf5 repoquery --installed | sort) | grep '[<>]' | |||
</pre> | |||
* Pick any package and query the information about it using `dnf5 repoquery --info <package>` | |||
* Exploratory testing: explore the help section of dnf5 repoquery and run it with options of your choice. We are especially curious about these options: | |||
<pre> | |||
--whatconflicts|whatenhances|whatobsoletes|whatprovides|whatrecommends|whatrequires|whatsuggests|whatsupplements | |||
</pre> | |||
|results= | |results= | ||
Line 18: | Line 25: | ||
* Dnf5 repolist prints only enabled repositories | * Dnf5 repolist prints only enabled repositories | ||
* Dnf5 repolist prints only disabled repositories | * Dnf5 repolist prints only disabled repositories | ||
* Dnf5 repoinfo prints correct details about the repositories | |||
* List of packages is the same (with the allowed exception of gpg-pubkey* packages) | * List of packages is the same (with the allowed exception of gpg-pubkey* packages) | ||
* Dnf5 repoquery --info prints the detailed information about the package | * Dnf5 repoquery --info prints the detailed information about the package | ||
* Dnf5 repoquery executed with options behaves according to the help of man page. | * Dnf5 repoquery executed with options behaves according to the help of man page. | ||
}} | }} |
Latest revision as of 23:05, 14 March 2024
Description
This test case is to test dnf5 repoquery / repolist commands
Setup
Install the pre-release version of Fedora 38
How to test
- Install dnf5 using
sudo dnf -y install dnf5
- Run
dnf5 repolist --all
- Run
dnf5 repolist
- Run
dnf5 repolist --disabled
- Run
dnf5 repoinfo
- Compare the installed packages output from
dnf5 repoquery --installed
with output fromrpm
.
diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:%{VERSION}-%{RELEASE}.%{ARCH}\n" -qa | sort) \ <(dnf5 repoquery --installed | sort) | grep '[<>]'
- Pick any package and query the information about it using
dnf5 repoquery --info <package>
- Exploratory testing: explore the help section of dnf5 repoquery and run it with options of your choice. We are especially curious about these options:
--whatconflicts|whatenhances|whatobsoletes|whatprovides|whatrecommends|whatrequires|whatsuggests|whatsupplements
Expected Results
- Dnf5 package is installed successfully
- Dnf5 repolist --all prints all repositories and includes the information whether the repository is enabled or disabled
- Dnf5 repolist prints only enabled repositories
- Dnf5 repolist prints only disabled repositories
- Dnf5 repoinfo prints correct details about the repositories
- List of packages is the same (with the allowed exception of gpg-pubkey* packages)
- Dnf5 repoquery --info prints the detailed information about the package
- Dnf5 repoquery executed with options behaves according to the help of man page.