Commit Graph

22 Commits

Author SHA1 Message Date
Florian Festi 73674678b2 Include name of unknown tag in the error message when parsig a formar string
Resolves: rhbz#855305
2015-11-13 12:34:57 +01:00
Panu Matilainen df603a2468 Validate query format field width specifier is sane
- Only allow [[-]<number>] in the format field, users have no business
  telling which format conversion sprintf() should use for tag data.
  Fixes embarrassing segfaults from things like %s{size} which rpm
  has merrily passed on to sprintf() as-is.
2011-08-17 08:17:13 +03:00
Panu Matilainen 04f9294413 Add tests for the most common nvra query combinations 2011-06-08 15:28:06 +03:00
Panu Matilainen 72b21d5ffc Remove redundant data copying into test-suite root 2011-04-04 11:39:25 +03:00
Panu Matilainen 1743c9eba9 Avoid leaking our compilation directory into test-suite
- Since they're running in fakechroot there's no need to arrange
  user writable directories this way
2011-04-04 11:27:03 +03:00
Panu Matilainen a3dc8a9209 Make all query tests run under fakechroot 2011-04-01 15:42:47 +03:00
Panu Matilainen e8a1f5da3e Lift specfile query out of main rpm(query) into separate binary
- Avoids having to link /bin/rpm with librpmbuild and everything it
  might bring in (eg libmagic) which are not needed for core operation.
- Minimally preserve backwards compatibility with popt exec alias
2010-10-04 14:31:55 +03:00
Panu Matilainen 5a1d5ddc84 Add test for manifest query in testsuite 2010-09-08 13:52:30 +03:00
Panu Matilainen 6193eee71c Add a test-case for --specfile query 2010-08-18 12:32:23 +03:00
Panu Matilainen 95b8a91089 Update testsuite expectations as per array format change, add another test 2008-12-09 14:58:43 +02:00
Panu Matilainen 23c55fa997 Adjust test result to meet current expectation 2008-12-04 22:30:35 +02:00
Panu Matilainen c0e6b4579f Add a pile of queryformat tests
- a few fail, and for a reason (rhbz#474550 and breakage from
  tag class changes)
2008-12-04 21:23:06 +02:00
Panu Matilainen 53b14ecfea Add keywords to all tests
- just initial groupings to have something there..
2008-11-22 14:07:34 +02:00
Panu Matilainen 4ba4e709ef Add banners for nicer test output 2008-11-22 13:26:43 +02:00
Panu Matilainen 08c81de2ee Hackery to get rpm install tests to "work" with fakechroot
- fakechroot throws it's own curveballs into the already mixed up thing,
  copy things to the test dir and set chroot base to that to avoid
  confusion with cwd and such
- klunky and ugly but at least the tests pass now when running non-root
2008-11-21 17:59:49 +02:00
Panu Matilainen db6c332c49 Add + use wrapper function for calling rpm commands in tests
- avoids having to define --rcfile etc over and over again
2008-11-21 17:59:41 +02:00
Panu Matilainen 50e59e92dc These tests are expected to succeed 2008-11-21 17:59:16 +02:00
Ralf Corsépius 333fc3b70e Massive hacking on tests. 2007-08-30 15:33:15 +02:00
Ralf Corsépius f77387df9a Add [rpm -q --scripts -p *.i386.rpm]. 2007-08-24 07:36:24 +02:00
Ralf Corsépius ceabc3ff98 Cosmetics. 2007-08-21 14:52:00 +02:00
Ralf Corsépius ed488d4181 Add check for rpmquery -ql -p *.src.rpm.
Add check for rpmquery -ql -p *.i386.rpm
2007-08-21 08:51:16 +02:00
Ralf Corsépius 9e161ad425 Add rpmquery.at 2007-08-20 15:28:20 +02:00