diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 23:08:39 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 23:08:39 +0200 |
commit | 9ff6fcfd4f0930c77ad3eb8b52d7328b86526cc4 (patch) | |
tree | 8b8a93f7484ec41e0100e8f425f73e774e24ba81 /test.py | |
parent | d9c6fb6767c6873782847df168f8224d83ab30cd (diff) | |
download | portato-9ff6fcfd4f0930c77ad3eb8b52d7328b86526cc4.tar.gz portato-9ff6fcfd4f0930c77ad3eb8b52d7328b86526cc4.tar.bz2 portato-9ff6fcfd4f0930c77ad3eb8b52d7328b86526cc4.zip |
Some runtime tests
Diffstat (limited to '')
-rw-r--r-- | test.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +from portato import _sub_start +_sub_start() + +from portato.eix import EixReader +from portato.backend import system + +def run(): + with EixReader("/var/cache/eix") as eix: + for c in eix.categories: + c.name + for p in c.packages: + p.name + +def run2(): + for i in system.find_packages(with_version = False): + cat, pkg = i.split("/") + +def run3(): + inst = system.find_packages(pkgSet = system.SET_INSTALLED, with_version = False) + + for i in range(200): + "bla" in inst + +def run4(): + inst = set(system.find_packages(pkgSet = system.SET_INSTALLED, with_version = False)) + for i in range(200): + "bla" in inst |