index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2009-05-20 21:46:23 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-05 10:37:01 -0500 |
commit | ac9dde072c56b9dbc3fe515dc3702c2c992f492f (patch) | |
tree | 1a600dc9a1a5a06af0eb1b60507ea7551f0a2e8f /pactest/tests | |
parent | 6b6eb6345bb3d9f59d967144968328c9a4b7873c (diff) |
-rw-r--r-- | pactest/tests/database001.py | 11 | ||||
-rw-r--r-- | pactest/tests/database002.py | 11 |
diff --git a/pactest/tests/database001.py b/pactest/tests/database001.py new file mode 100644 index 00000000..de4c0404 --- /dev/null +++ b/pactest/tests/database001.py @@ -0,0 +1,11 @@ +self.description = "-D --asdeps" + +lp = pmpkg("pkg") +lp.reason = 0 +self.addpkg2db("local", lp) + +self.args = "-D pkg --asdeps" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_EXIST=pkg") +self.addrule("PKG_REASON=pkg|1") diff --git a/pactest/tests/database002.py b/pactest/tests/database002.py new file mode 100644 index 00000000..05fa7f4b --- /dev/null +++ b/pactest/tests/database002.py @@ -0,0 +1,11 @@ +self.description = "-D --asexplicit" + +lp = pmpkg("pkg") +lp.reason = 1 +self.addpkg2db("local", lp) + +self.args = "-D pkg --asexplicit" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_EXIST=pkg") +self.addrule("PKG_REASON=pkg|0") |