mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
add test
This commit is contained in:
3
system/t09_repo/AddRepo17Test_gold
Normal file
3
system/t09_repo/AddRepo17Test_gold
Normal file
@@ -0,0 +1,3 @@
|
||||
Loading packages...
|
||||
[+] mesa-stable-no-march_24.2.6-101pika1_amd64 added
|
||||
[+] mesa-stable_24.2.6-101pika1_amd64 added
|
||||
8
system/t09_repo/AddRepo17Test_repo_show
Normal file
8
system/t09_repo/AddRepo17Test_repo_show
Normal file
@@ -0,0 +1,8 @@
|
||||
Name: repo17
|
||||
Comment: Repo17
|
||||
Default Distribution: squeeze
|
||||
Default Component: main
|
||||
Number of packages: 2
|
||||
Packages:
|
||||
mesa-stable_24.2.6-101pika1_amd64
|
||||
mesa-stable-no-march_24.2.6-101pika1_amd64
|
||||
@@ -344,3 +344,21 @@ class AddRepo16Test(BaseTest):
|
||||
self.check_cmd_output("aptly repo show repo2", "repo_show")
|
||||
|
||||
shutil.rmtree(self.tempSrcDir)
|
||||
|
||||
|
||||
class AddRepo17Test(BaseTest):
|
||||
"""
|
||||
add packages to local repo: .deb file with provides
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Repo17 -distribution=squeeze repo17",
|
||||
]
|
||||
runCmd = "aptly repo add repo17 ${testfiles}/mesa-stable_24.2.6-101pika1_amd64.deb ${testfiles}/mesa-stable-no-march_24.2.6-101pika1_amd64.deb"
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly repo show -with-packages repo17", "repo_show")
|
||||
|
||||
# check pool
|
||||
self.check_exists('pool/e3/f6/51297bd4bd0ef999296ef0a28299_mesa-stable-no-march_24.2.6-101pika1_amd64.deb')
|
||||
self.check_exists('pool/01/6b/3d864229761eff49a8680c9987ab_mesa-stable_24.2.6-101pika1_amd64.deb')
|
||||
|
||||
Reference in New Issue
Block a user