Simple tests for inline help.

This commit is contained in:
Andrey Smirnov
2014-01-21 12:45:48 +04:00
parent 362cdbcd57
commit 211cce1a8e
7 changed files with 104 additions and 0 deletions

View 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

View 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

View 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)

View File

@@ -0,0 +1,4 @@
Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...]
aptly mirror create - create new mirror of Debian repository

View 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.

View 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.

View 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"