Skip to content

Commit

Permalink
Add test for file query
Browse files Browse the repository at this point in the history
This has been missing, so add a simple one.
  • Loading branch information
dmnks authored and pmatilai committed Sep 13, 2021
1 parent b88f43b commit d1aebda
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/rpmquery.at
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,24 @@ runroot rpm \

AT_CLEANUP

# ------------------------------
# query a package by a file
AT_SETUP([rpm -qf])
AT_KEYWORDS([query])
AT_CHECK([
RPMDB_INIT
runroot rpm \
--nodeps \
-i /data/RPMS/hello-1.0-1.i386.rpm
runroot rpm \
-qf /usr/local/bin/hello
],
[0],
[hello-1.0-1.i386
],
[])
AT_CLEANUP

# ------------------------------
AT_SETUP([integer array query])
AT_KEYWORDS([query])
Expand Down

0 comments on commit d1aebda

Please sign in to comment.