forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a bit of a hack as it manipulates the parsed cli parameters to to the "right thing" and then calls rpmcliQuery and rpmErase.
- Loading branch information
Showing
3 changed files
with
84 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ runroot rpm \ | |
[ignore]) | ||
RPMTEST_CLEANUP | ||
|
||
AT_SETUP([rpm -qa 3]) | ||
AT_SETUP([rpm -qa and rpmkeys]) | ||
AT_KEYWORDS([rpmdb query]) | ||
RPMDB_INIT | ||
|
||
|
@@ -82,8 +82,43 @@ gpg-pubkey-1964c5fc-58e63918 | |
hello-2.0-1.x86_64 | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list | ||
], | ||
[0], | ||
[1964c5fc-58e63918: rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list 1964c5fc | ||
], | ||
[0], | ||
[1964c5fc-58e63918: rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list XXX | ||
], | ||
[1], | ||
[package gpg-pubkey-XXX is not installed | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --delete 1964c5fc | ||
runroot rpmkeys --list | ||
], | ||
[1], | ||
[package gpg-pubkey is not installed | ||
], | ||
[]) | ||
RPMTEST_CLEANUP | ||
|
||
|
||
|
||
# ------------------------------ | ||
# Run rpm -q <package> where <package> exists in the db. | ||
AT_SETUP([rpm -q foo]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters