Skip to content
Snippets Groups Projects
Commit dbdb1cf2 authored by Andrew Gregory's avatar Andrew Gregory Committed by Allan McRae
Browse files

Add basic sandboxed download tests


Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
parent b1f95fd3
No related branches found
Tags 4.0.0-1
No related merge requests found
......@@ -154,6 +154,8 @@ pacman_tests = [
'tests/replace103.py',
'tests/replace104.py',
'tests/replace110.py',
'tests/sandbox-download-upgrade.py',
'tests/sandbox-download-basic.py',
'tests/scriptlet001.py',
'tests/scriptlet002.py',
'tests/scriptlet-signal-handling.py',
......
self.description = "--upgrade with SandboxUser set"
self.require_capability("curl")
p1 = pmpkg('pkg1', '1.0-1')
self.addpkg2db('sync', p1)
url = self.add_simple_http_server({
'/{}'.format(p1.filename()): p1.makepkg_bytes(),
})
self.option['SandboxUser'] = ['root']
self.db['sync'].option['Server'] = [ url ]
self.db['sync'].syncdir = False
self.cachepkgs = False
self.args = '-S pkg1'
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=pkg1")
self.addrule("CACHE_EXISTS=pkg1|1.0-1")
self.description = "--upgrade with SandboxUser set"
self.require_capability("curl")
self.option['SandboxUser'] = ['root']
p1 = pmpkg('pkg1', '1.0-1')
self.addpkg(p1)
url = self.add_simple_http_server({
'/{}'.format(p1.filename()): p1.makepkg_bytes(),
})
self.args = '-U {url}/{}'.format(p1.filename(), url=url)
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=pkg1")
self.addrule("CACHE_EXISTS=pkg1|1.0-1")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment