summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-02-08Add tag extension to calculate hardlink count for filesPanu Matilainen1-0/+1
2012-01-28Add a basic testcase for bogus filename triplet detectionPanu Matilainen1-1/+22
2012-01-28Add a basic testcase for bogus (incomplete) header detectionPanu Matilainen1-0/+14
2012-01-13Add bunch of links to test-suite chroot to allow selinux to workPanu Matilainen1-0/+1
- With the new warning on failure to open selinux labels from commit 7a8b75d26605cf7a3fde9f624a80d6fb8390fcbd, the test-suite fails on large number of tests due to the extra output. This takes care of these false alarms on F16 at least. - Recent selinux wants /etc/selinux and /sys (for /sys/fs/selinux), older ones would want /selinux. Add in /proc for good measure, selinux doesn't need it butit wont hurt either, other things will want it sooner or later.
2011-11-16Do not attempt running the test suite without fakechroot (ticket #851).Ales Kozumplik1-0/+6
Partially resolves ticket #851.
2011-11-14Avoid XZ dependency in test-suitePanu Matilainen2-0/+0
- The two "hello" binaries packages used for various multilib checks were accidentally using xz payload compression, causing test-suite to fail when rpm was configured without xz support. Rebuild them with gzip compression instead to avoid silly failures - gzip compression support is mandatory, xz is not.
2011-11-08Do not let 'rpm -q foo-' find package 'foo'. (RhBug:488567)Ales Kozumplik1-0/+39
- Includes a test suite for the case. Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-09-06Add four new extension tags for pretty-formatting dependenciesPanu Matilainen1-0/+4
- The current method that --requires and friends use is kinda cumbersome and outputs extra whitespace for dependencies which dont have flags+version attached. Adding extensions for this is likely to be easier than teaching query formatting to permit conditionalizing on current value instead of just tag existence.
2011-09-01Add RPMTAG_INSTFILENAMES tag extension for state-aware file listsPanu Matilainen1-0/+1
- For a more consistent experience wrt all the state-awareness stuff, this needs to be easily querifiable too. - Also makes the tagnames kludgery from commit cac8c389607d7a5735b2905035fdfe4404670d06 unnecessary
2011-08-25Add test for ts.clear() as a side-effect of add to ts testPanu Matilainen1-0/+3
2011-08-17Validate query format field width specifier is sanePanu Matilainen1-0/+14
- 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-07-11Add basic test for Ftell() in pythonPanu Matilainen1-0/+6
2011-07-08Add a simple test for Fflush() functionality in pythonPanu Matilainen1-0/+1
- Prior to previous patch this segfaulted and tracebacked...
2011-07-07Teach python rpmio bindings about Fdescr()Panu Matilainen1-0/+4
- Similarly to python file object having o.name, export Fdescr() as fd.name. Python uses <foo> for non-paths but [foo] seems like a safer choice wrt accidental redirections. - Also add a basic testcase for fd.name
2011-07-06Add tests for header getattr() behavior sanityPanu Matilainen1-1/+11
2011-07-01Add a simple and stupid test case for python spec parsePanu Matilainen1-0/+15
2011-07-01Add basic test for rpmio python bindingsPanu Matilainen1-0/+24
2011-06-28Fix explicit directory %attr() when %defattr() is active (RhBug:481875)Panu Matilainen1-2/+0
- parseForAttr() doesn't know whether it's dealing with a directory or a file, so it can't know which defaults it should use. Move all the decision making on which of the explicit/default/implicit attributes into addFile() where we do know what kind of entry we're dealing with, and only parse in parseForAttr(). - Update the test-case status to expect success now.
2011-06-28Add a test-case for various %attr and %defattr combinationsPanu Matilainen3-0/+101
- Currently this fails expectedly due to RhBug:681540 on the last directory of the test rpm.
2011-06-09Add bunch of further rpm-python tests for this and thatPanu Matilainen1-0/+68
2011-06-09Add a bunch of db match/key iterator test-cases in pythonPanu Matilainen1-0/+72
- This would've caught the breakage introduced in commit 7e4415fcc5e11cfd4cd9d0dfe19568be73f15d74, but better late than never...
2011-06-09Rearrange test-suite python helper macros a bitPanu Matilainen3-8/+14
- Handle double [] "escaping" at RPM_PYRUN to avoid surprises when its used on its own - Spin python-wrapped AT_CHECK into a macro of its own (RPMPY_CHECK) - What formerly was RPMPY_CHECK is now RPMPY_TEST: this represents one entire testcase with all its setup and cleanup, whereas RPMPY_CHECK (the new one) might be used several times within a single test
2011-06-08Add tests for the most common nvra query combinationsPanu Matilainen1-2/+9
2011-06-01Make test-case for --replacepkgs stricterPanu Matilainen1-2/+7
- Actually verify we got the expected result, ie exactly one instance of the pkg installed after successful reinstall.
2011-05-26Add test-cases for three RhBug:705115 scenariosPanu Matilainen3-0/+95
2011-05-26Add tests for multilib file state dependenciesPanu Matilainen1-0/+56
- Testcase for the file state consideration implemented in commit 566a15c9c08aa593d05e2f55f1c171a48bc1b1bc
2011-05-26Add two basic multilib conflict resolution testsPanu Matilainen4-0/+41
- Add colored binary packages (as there's no guarantee we can build them from test-suite), test that colored conflicts get resolved to preferred color.
2011-04-04Execute all non-compilation rpmbuild tests in fakechrootPanu Matilainen3-28/+28
- Except for four rpmbuild tests which rely on an actual compiler being available (faking *that* would get entertaining...), the entire test-suite is now executing everything in the fakechroot environment.
2011-04-04Add more stuff to test-suite root environmentPanu Matilainen2-3/+4
- Build needs a whole bunch of utilities there, including file + its magic database. The exact location of the magic db varies between systems but file -C lets us basically make a copy of the system magicdb into the fakechroot env and then we can override the location with MAGIC
2011-04-04Switch more test-suite builds to run under fakechrootPanu Matilainen2-6/+6
- This leaves only the "real" builds where the packages contain files to be executed outside fakechroot
2011-04-04Run dependency tests entirely in fakechrootPanu Matilainen1-26/+26
- All the packages here have no files making them "easy" to build inside the chroot
2011-04-04Prepare the test root entirely from Makefile, add missing bitsPanu Matilainen2-3/+5
- Running builds in fakechroot needs a whole lot of things.. add symlinks to various system config + dev files to give some trivial packages a chance to build under fakechroot
2011-04-04Remove redundant data copying into test-suite rootPanu Matilainen3-30/+11
2011-04-04Avoid leaking our compilation directory into test-suitePanu Matilainen2-9/+7
- Since they're running in fakechroot there's no need to arrange user writable directories this way
2011-04-01Adjust rpmdb path for all remaining non-fakeroot runsPanu Matilainen2-2/+2
- Executing rpmbuild in the fakeroot gets fairly tricky, especially for the tests that actually compile things. Overriding the dbpath prevents it from accessing system rpmdb for keyring and build-requires. - With this patch, the test-suite now passes the smoke-test of "chmod go-rx /var/lib/rpm" on system rpmdb.
2011-04-01Adjust rpmdb path in python testsPanu Matilainen1-0/+2
- We can't run python easily in the chroot so override the dbpath to our test area instead of potentially accessing the system db for keyring etc
2011-04-01Explicitly initialize the test-root database alwaysPanu Matilainen6-0/+33
- Otherwise various places will be emitting "generating xx missing indexes" warnings, we dont want that noise in the test-suite results
2011-04-01Switch the two remaining rpm runs under fakechrootPanu Matilainen2-4/+4
- Everything in the test-suite except rpmbuild execution is now performed in the fakechroot environment
2011-04-01Run all rpmmacro tests under fakechrootPanu Matilainen1-26/+16
2011-04-01Make a bunch of tools available in the testsuite root environmentPanu Matilainen1-0/+1
- We'll need shell and various other bits in order to do many things wrt specs and builds in the root...
2011-04-01Run most rpmi tests under fakechrootPanu Matilainen1-7/+7
- one of the manifest tests is failing mysteriously in root mode though..
2011-04-01Run testsuite rpmdb init helper with fakechrootPanu Matilainen1-3/+1
2011-04-01Make all query tests run under fakechrootPanu Matilainen1-47/+47
2011-04-01Make all generic tests run under fakechrootPanu Matilainen1-4/+4
2011-04-01Avoid unnecessary use of 'id' in test-suite specsPanu Matilainen2-2/+1
- We could just ditch the entire buildroot lines from the specs but leaving one case to test that we dont actually fail on specs that do have it.
2011-04-01Make all test data available in the test-rootPanu Matilainen1-0/+1
2011-04-01Test-suite spring cleaningPanu Matilainen2-57/+0
- Remove duplicate --version checks (doh) and some commented out build tests that are unlikely to ever be implemented in reality
2011-02-15Fix corner-case behavior on dependency matching when release not presentMichael Schroeder1-10/+10
- The idea behind the patch is that a missing release is handled as "all/any release". Nothing changes for "foo < 1.2" or "foo > 1.2", it still just compares the version. But "foo = 1.2" means "everything with version 1.2". Thus, any match against a package with version "1.2" a any non-empty release must return true. - Update test-suite expectations to the new behavior. Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2010-12-23Require %files section for package generation againPanu Matilainen2-0/+6
- Turns out this change does more harm than good, people are actually relying on this behavior to avoid zillion conditionals in the spec. We'll want a saner way to conditionally disable/enable packages but until we have that, revert to the former longstanding behavior. - This effectively reverts commit d010ec1c9026b35f5b2521be965c03c826894ce8
2010-12-17Yet another pile of depmatch tests + added commentaryPanu Matilainen1-0/+94