mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
844d82fad8
Move the test suite to test/pacman in order to make a logical location for a future makepkg test suite. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
18 lines
588 B
Python
18 lines
588 B
Python
# TODO: these are labeled as database packages because they sure seem to me to
|
|
# be database-type operations. In their current implementation however they are
|
|
# calling -U and -R rather than -D. Obviously the tests will need to be updated
|
|
# if this changes.
|
|
self.description = "Install a package with --dbonly, no files touched"
|
|
|
|
p = pmpkg("dummy")
|
|
p.files = ["bin/dummy",
|
|
"usr/man/man1/dummy.1"]
|
|
self.addpkg(p)
|
|
|
|
self.args = "-U --dbonly %s" % p.filename()
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_EXIST=dummy")
|
|
for f in p.files:
|
|
self.addrule("!FILE_EXIST=%s" % f)
|