[pacman-dev] [PATCH] testsuite

VMiklos vmiklos at frugalware.org
Tue Jan 31 14:35:29 EST 2006


On Mon, Jan 30, 2006 at 11:29:50PM +0100, Aurelien Foret <aurelien at archlinux.org> wrote:
> In fact, yes: I've been working on a test suite for pacman for the last two weeks. The 
> idea is basically the same, although it extends it a little bit further.
> 
> The whole thing is a python script allowing to perform high level tests with pacman. 
> What I've got so far is working pretty well and is quite easy to use.
> I put in it some test cases today as examples on how to use it.
> The script generates automatically the test environment described in the test case, run 
> pacman, collect its logs, and then check a set of rules.
> Make sure the pacman binary to test is in the PATH, then run:
> ./pactest.py --debug=-1 --test=test/*
> 
> I hadn't plan to release it before a few days, but now that the idea is in the air, I 
> thought it would be better to share it as is.

i'll never understand how could one working on something for more than a
day without sharing it :)

btw i don't know python so i can't send a patch and/or figure out what
the problem is, but:

$ ./pactest.py --debug=-1 --test=test/* -p ../../src/pacman/pacman
(...)
PASSED=1/25 (4%) FAILED=24/25 (96%)

yes, compiled with --disable-fakeroot. is this normal?

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list