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:
Caleb Connolly 2024-06-12 21:07:49 +02:00 committed by Oliver Smith
parent efce73df2f
commit 62d700c3d8
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 46 additions and 0 deletions

View file

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