diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-08-18 12:32:23 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-08-18 12:32:23 +0300 |
commit | 6193eee71c37ffabcae399bdc2bc38fa55aa9b78 (patch) | |
tree | f7a08450949f626280393c2d98e83e6127a5e175 | |
parent | ab8ab164b95df8dc977e8650c671312ae534ca16 (diff) | |
download | librpm-tizen-6193eee71c37ffabcae399bdc2bc38fa55aa9b78.tar.gz librpm-tizen-6193eee71c37ffabcae399bdc2bc38fa55aa9b78.tar.bz2 librpm-tizen-6193eee71c37ffabcae399bdc2bc38fa55aa9b78.zip |
Add a test-case for --specfile query
-rw-r--r-- | tests/rpmquery.at | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rpmquery.at b/tests/rpmquery.at index af63b7b46..4de56c5ea 100644 --- a/tests/rpmquery.at +++ b/tests/rpmquery.at @@ -62,6 +62,18 @@ hello.spec AT_CLEANUP # ------------------------------ +AT_SETUP([rpm -q --specfile]) +AT_KEYWORDS([query]) +AT_CHECK([ +run rpm \ + -q --specfile --qf "%{name}" "${abs_srcdir}"/data/SPECS/hello.spec +], +[0], +[hello], +[]) +AT_CLEANUP + +# ------------------------------ AT_SETUP([rpm -ql -p *.i386.rpm]) AT_KEYWORDS([query]) AT_CHECK([ |