mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
System test for repo adding .udebs. #108
This commit is contained in:
@@ -155,6 +155,7 @@ class BaseTest(object):
|
||||
if not hasattr(command, "__iter__"):
|
||||
params = {
|
||||
'files': os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "files"),
|
||||
'udebs': os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "udebs"),
|
||||
'testfiles': os.path.join(os.path.dirname(inspect.getsourcefile(self.__class__)), self.__class__.__name__),
|
||||
}
|
||||
if self.fixtureWebServer:
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Loading packages...
|
||||
[+] dmraid-udeb_1.0.0.rc16-4.1_amd64 added
|
||||
@@ -0,0 +1,7 @@
|
||||
Name: repo12
|
||||
Comment: Repo12
|
||||
Default Distribution: squeeze
|
||||
Default Component: main
|
||||
Number of packages: 1
|
||||
Packages:
|
||||
dmraid-udeb_1.0.0.rc16-4.1_amd64
|
||||
@@ -0,0 +1,6 @@
|
||||
Loading packages...
|
||||
[+] libboost-program-options-dev_1.49.0.1_i386 added
|
||||
[+] pyspi_0.6.1-1.4_source added
|
||||
[+] pyspi_0.6.1-1.3_source added
|
||||
[+] dmraid-udeb_1.0.0.rc16-4.1_amd64 added
|
||||
[+] dmraid-udeb_1.0.0.rc16-4.1_i386 added
|
||||
@@ -0,0 +1,11 @@
|
||||
Name: repo13
|
||||
Comment: Repo13
|
||||
Default Distribution: squeeze
|
||||
Default Component: main
|
||||
Number of packages: 5
|
||||
Packages:
|
||||
dmraid-udeb_1.0.0.rc16-4.1_amd64
|
||||
dmraid-udeb_1.0.0.rc16-4.1_i386
|
||||
libboost-program-options-dev_1.49.0.1_i386
|
||||
pyspi_0.6.1-1.3_source
|
||||
pyspi_0.6.1-1.4_source
|
||||
@@ -232,3 +232,38 @@ class AddRepo11Test(BaseTest):
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly repo show -with-packages repo11", "repo_show")
|
||||
|
||||
|
||||
class AddRepo12Test(BaseTest):
|
||||
"""
|
||||
add package to local repo: .udeb file
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Repo12 -distribution=squeeze repo12",
|
||||
]
|
||||
runCmd = "aptly repo add repo12 ${udebs}/dmraid-udeb_1.0.0.rc16-4.1_amd64.udeb"
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly repo show -with-packages repo12", "repo_show")
|
||||
|
||||
# check pool
|
||||
self.check_exists('pool/72/16/dmraid-udeb_1.0.0.rc16-4.1_amd64.udeb')
|
||||
|
||||
|
||||
class AddRepo13Test(BaseTest):
|
||||
"""
|
||||
add package to local repo: .udeb and .deb files
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Repo13 -distribution=squeeze repo13",
|
||||
]
|
||||
runCmd = "aptly repo add repo13 ${udebs} ${files}"
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly repo show -with-packages repo13", "repo_show")
|
||||
|
||||
# check pool
|
||||
self.check_exists('pool/72/16/dmraid-udeb_1.0.0.rc16-4.1_amd64.udeb')
|
||||
self.check_exists('pool/b7/2c/pyspi_0.6.1-1.3.dsc')
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user