summaryrefslogtreecommitdiffstats
path: root/pactest/pmdb.py
AgeCommit message (Collapse)AuthorFilesLines
2010-05-18Add some machinery to test the Include directiveDan McGee1-0/+1
After the previous patch that re-enabled its use outside of sync repository sections which we had unintentionally disabled. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-04-17pactest : Use tarfile module.Chantry Xavier1-1/+8
Previously, tar was called manually with os.system. This caused one fork per package/db creation, which is costly, especially on cygwin. Besides, it also caused some problems with directory with whitespaces (that could also be fixed with quotes, but well..) Using tarfile module is cleaner and more efficient, and still easy enough. Benchmark (time make check) : - windows / cygwin prepatch: real 6m36.360s user 2m28.914s sys 2m35.866s postpatch: real 5m25.428s user 1m26.029s sys 2m0.006s - linux prepatch: real 1m22.629s user 0m31.498s sys 0m18.899s postpatch: real 1m11.465s user 0m26.382s sys 0m12.986s Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
2008-02-14Ensure DESC infolevel is loaded before checking pkg->filenameDan McGee1-0/+1
This is the first step of fixing FS#9547. This should not break any existing code that may rely on this function behaving the way it did, and should be good for inclusion in a maint release. In addition, update pactest so it fills the FILENAME field in the DB entries it creates so we can move forward with a real fix to this issue. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-02-08pactest: make more resiliant to missing filesDan McGee1-2/+11
Add a bunch of guards around function calls like open() and stat() to ensure we are not going to get ourselves a python error. This made implementing and testing the new upgrade045 pactest much easier, as its whole purpose was to create a dead symlink and debug a segfault of pacman (which caused no DB entries to be written) to support the previously checked in fix for FS#9235 (commit 0c2206f542ce6df2606586d43f190cd5a423fb13). Both of these cases are now non-fatal in pactest. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-12-11Update GNU GPL boilerplate and copyright datesDan McGee1-3/+1
Update the GPL boilerplate to direct people to the GNU website for a copy of the license, as well as bump all of Judd's copyrights to 2007. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-12-03Add a lot more tests (and some pactest fixes) to -Si and -Qi testsDan McGee1-8/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-11-15Remove REQUIREDBY checks from pactestDan McGee1-6/+1
Remove any checks dealing with requiredby from pactest (but not actually from the pactests themselves). Of course, we should probably find a new way to check requiredby values of packages since there is no guarantee our code is working perfectly. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-11-04Added optdepends support to pactestJeff Mickey1-0/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-09-07Fix sync db location in pactest so new location is acceptableDan McGee1-1/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-03-05* Fixed an issue with globbing the --test argumentAaron Griffin1-3/+2
* Added a custom 'mkdir' function which makes parents and doesn't fail on existence * Added output for 'SKIP' messages (it did not indicate WHY it was skipped) * Added the ability to generate DB packages in the sync dir (not the cache dir) for testing downloading. (self.cachepkgs = False) * Added pmtest.path for the full path to the package file
2007-02-28* Unifying placement of REPLACES in desc file, as pacman2 does. We'll worryDan McGee1-11/+14
about bigger DB changes later, but lets not screw anything up for release. * Removed some weird uses of "not ... ==" usage in pactest- correct me if I'm wrong, but isn't "!=" a lot more clean and concise? * Print description of failed tests in the pactest summary. This could get dirty with a lot of failed tests though, so watch out.
2007-02-26* Writing 'replaces' info to both /desc and /depends files for testing - see theAaron Griffin1-0/+2
"replaces confusion" thread on pacman-dev for more information * Cleaned up some 2 item loops in the sync131 test
2007-02-26* corrected (IMO) --debug usage with pactest. --debug is now passed straightAaron Griffin1-2/+2
through to pacman, whereas --verbose affects the pactest output - this cleans up the standard test output significantly * sorted tests a bit better, sectioning off failed tests AFTER successful tests, to make it easier to see what failed at a glance * added a 'testname' member to pmtest, which strips path info (cleaner output)
2007-02-21* Indentation changes - 4 spaces for python, we standardized this before (andAaron Griffin1-322/+323
it's a PEP) * Modified some sync tests
2006-10-15Added pactest to repository, from Aurelien Foret:Aaron Griffin1-0/+363
http://aurelien.foret.free.fr/archlinux/pactest/