summaryrefslogtreecommitdiff
path: root/pactest/pmrule.py
Commit message (Collapse)AuthorAge
* Fail sanely on OUTPUT rules when --nolog is passedAaron Griffin2007-12-10
| | | | | | | Check for existence of the logfile first, and output an error if not found Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Update GNU GPL boilerplate and copyright datesDan McGee2007-12-10
| | | | | | | 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>
* Remove REQUIREDBY checks from pactestDan McGee2007-11-14
| | | | | | | | | 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>
* Added optdepends support to pactestJeff Mickey2007-11-04
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Add mode and type checking to pactest for filesDan McGee2007-07-01
| | | | | | | | | | | | | Add the ability to check the permissions and type of a file within the framework of pactest. Two new rules can be used: self.addrule("FILE_TYPE=bin/foo|file") self.addrule("FILE_MODE=bin/bar|644") TODO: add the ability to add different types of files (eg links) via the test package building framework, and add the ability to change the modes on files. Signed-off-by: Dan McGee <dan@archlinux.org>
* * Fixed an issue with globbing the --test argumentAaron Griffin2007-03-05
| | | | | | | | | * 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
* * Unifying placement of REPLACES in desc file, as pacman2 does. We'll worryDan McGee2007-02-28
| | | | | | | | 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.
* * Added another test as suggested by Nagy on the ML- a package both providesDan McGee2007-02-28
| | | | | | | | | | | | for and is a dependency of another package. (upgrade057) * Removed man2html stuff from doc/Makefile.am. * Patch: improved depends checking in _alpm_checkdeps Nagy Gabor <ngaba@petra.hos.u-szeged.hu> * Slight revisions to pmrule.py to allow for a PKG_PROVIDES test. * Very quick updates to the pactest README. * Added rules to some of the newer upgrade tests. Note: upgrade055 now fails due to requiredby entries not being written packages that are dependencies in a provides role.
* * corrected (IMO) --debug usage with pactest. --debug is now passed straightAaron Griffin2007-02-26
| | | | | | | | 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)
* * Indentation changes - 4 spaces for python, we standardized this before (andAaron Griffin2007-02-21
| | | | | it's a PEP) * Modified some sync tests
* Added pactest to repository, from Aurelien Foret:Aaron Griffin2006-10-15
http://aurelien.foret.free.fr/archlinux/pactest/