forked from Mirror/pmbootstrap
commands: add pmbootstrap test (MR 2252)
This is to serve as a place to dump useful internal tests, starting with one that simply parses all available APKINDEX files. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
efce73df2f
commit
62d700c3d8
4 changed files with 46 additions and 0 deletions
|
@ -564,6 +564,12 @@ def arguments_lint(subparser):
|
|||
add_packages_arg(lint, nargs="*")
|
||||
|
||||
|
||||
def arguments_test(subparser):
|
||||
test = subparser.add_parser("test", help="Internal pmbootstrap test tools")
|
||||
sub = test.add_subparsers(dest="action_test", required=True)
|
||||
sub.add_parser("apkindex_parse_all", help="parse all APKINDEX files")
|
||||
|
||||
|
||||
def arguments_status(subparser):
|
||||
ret = subparser.add_parser("status",
|
||||
help="show a config and pmaports overview")
|
||||
|
@ -730,6 +736,7 @@ def get_parser():
|
|||
arguments_aportupgrade(sub)
|
||||
arguments_newapkbuild(sub)
|
||||
arguments_lint(sub)
|
||||
arguments_test(sub)
|
||||
arguments_status(sub)
|
||||
arguments_ci(sub)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue