mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Simple tests for inline help.
This commit is contained in:
10
system/t03_help/MainHelpTest_gold
Normal file
10
system/t03_help/MainHelpTest_gold
Normal file
@@ -0,0 +1,10 @@
|
||||
aptly allows to create partial and full mirrors of remote
|
||||
repositories, filter them, merge, upgrade individual packages,
|
||||
take snapshots and publish them back as Debian repositories.
|
||||
|
||||
Options:
|
||||
-architectures="": list of architectures to consider during (comma-separated), default to all available
|
||||
-dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b'
|
||||
-dep-follow-recommends=false: when processing dependencies, follow Recommends
|
||||
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
||||
|
||||
17
system/t03_help/MainTest_gold
Normal file
17
system/t03_help/MainTest_gold
Normal file
@@ -0,0 +1,17 @@
|
||||
aptly - Debian repository management tool
|
||||
|
||||
Commands:
|
||||
|
||||
mirror manage mirrors of remote repositories
|
||||
publish manage published repositories
|
||||
snapshot manage snapshots of repositories
|
||||
version display version
|
||||
|
||||
Use "aptly help <command>" for more information about a command.
|
||||
|
||||
|
||||
Options:
|
||||
-architectures="": list of architectures to consider during (comma-separated), default to all available
|
||||
-dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b'
|
||||
-dep-follow-recommends=false: when processing dependencies, follow Recommends
|
||||
-dep-follow-suggests=false: when processing dependencies, follow Suggests
|
||||
4
system/t03_help/MirrorCreateHelpTest_gold
Normal file
4
system/t03_help/MirrorCreateHelpTest_gold
Normal file
@@ -0,0 +1,4 @@
|
||||
Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...]
|
||||
|
||||
Create only stores metadata about new mirror, and fetches Release files (it doesn't download packages)
|
||||
|
||||
4
system/t03_help/MirrorCreateTest_gold
Normal file
4
system/t03_help/MirrorCreateTest_gold
Normal file
@@ -0,0 +1,4 @@
|
||||
Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...]
|
||||
|
||||
aptly mirror create - create new mirror of Debian repository
|
||||
|
||||
11
system/t03_help/MirrorHelpTest_gold
Normal file
11
system/t03_help/MirrorHelpTest_gold
Normal file
@@ -0,0 +1,11 @@
|
||||
aptly mirror - manage mirrors of remote repositories
|
||||
|
||||
Commands:
|
||||
|
||||
create create new mirror of Debian repository
|
||||
list list mirrors of remote repositories
|
||||
show show details about remote repository mirror
|
||||
update update packages from remote mirror
|
||||
|
||||
Use "mirror help <command>" for more information about a command.
|
||||
|
||||
11
system/t03_help/MirrorTest_gold
Normal file
11
system/t03_help/MirrorTest_gold
Normal file
@@ -0,0 +1,11 @@
|
||||
aptly mirror - manage mirrors of remote repositories
|
||||
|
||||
Commands:
|
||||
|
||||
create create new mirror of Debian repository
|
||||
list list mirrors of remote repositories
|
||||
show show details about remote repository mirror
|
||||
update update packages from remote mirror
|
||||
|
||||
Use "mirror help <command>" for more information about a command.
|
||||
|
||||
47
system/t03_help/__init__.py
Normal file
47
system/t03_help/__init__.py
Normal file
@@ -0,0 +1,47 @@
|
||||
"""
|
||||
Test help screens
|
||||
"""
|
||||
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class MainTest(BaseTest):
|
||||
"""
|
||||
main
|
||||
"""
|
||||
runCmd = "aptly"
|
||||
|
||||
|
||||
class MirrorTest(BaseTest):
|
||||
"""
|
||||
main
|
||||
"""
|
||||
runCmd = "aptly mirror"
|
||||
|
||||
|
||||
class MirrorCreateTest(BaseTest):
|
||||
"""
|
||||
main
|
||||
"""
|
||||
runCmd = "aptly mirror create"
|
||||
|
||||
|
||||
class MainHelpTest(BaseTest):
|
||||
"""
|
||||
main
|
||||
"""
|
||||
runCmd = "aptly help"
|
||||
|
||||
|
||||
class MirrorHelpTest(BaseTest):
|
||||
"""
|
||||
main
|
||||
"""
|
||||
runCmd = "aptly help mirror"
|
||||
|
||||
|
||||
class MirrorCreateHelpTest(BaseTest):
|
||||
"""
|
||||
main
|
||||
"""
|
||||
runCmd = "aptly help mirror create"
|
||||
Reference in New Issue
Block a user