diff options
| author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2022-09-20 08:54:53 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-09-20 09:07:02 +1000 |
| commit | 7589d86b6b6ea4232ff5614f3e73565529d4b3bb (patch) | |
| tree | 27d249c214b4e7029f79b24e58913a72aee0caae /tests/run-multitests.py | |
| parent | 920da9c5e30da58d5f77b2c5e28c74e3670e6a3b (diff) | |
tests/run-multitests: Extend usage information.
Diffstat (limited to 'tests/run-multitests.py')
| -rwxr-xr-x | tests/run-multitests.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/run-multitests.py b/tests/run-multitests.py index bd6cc70f7..b5ba83b0a 100755 --- a/tests/run-multitests.py +++ b/tests/run-multitests.py @@ -3,6 +3,11 @@ # This file is part of the MicroPython project, http://micropython.org/ # The MIT License (MIT) # Copyright (c) 2020 Damien P. George +# +# run-multitests.py +# Runs a test suite that relies on two micropython instances/devices +# interacting in some way. Typically used to test networking / bluetooth etc. + import sys, os, time, re, select import argparse @@ -471,7 +476,10 @@ def run_tests(test_files, instances_truth, instances_test): def main(): global cmd_args - cmd_parser = argparse.ArgumentParser(description="Run network tests for MicroPython") + cmd_parser = argparse.ArgumentParser( + description="Run network tests for MicroPython", + formatter_class=argparse.RawTextHelpFormatter, + ) cmd_parser.add_argument( "-s", "--show-output", action="store_true", help="show test output after running" ) @@ -488,6 +496,14 @@ def main(): default=1, help="repeat the test with this many permutations of the instance order", ) + cmd_parser.epilog = ( + "Supported instance types:\r\n" + " -i pyb:<port> physical device (eg. pyboard) on provided repl port.\n" + " -i micropython unix micropython instance, path customised with MICROPY_MICROPYTHON env.\n" + " -i cpython desktop python3 instance, path customised with MICROPY_CPYTHON3 env.\n" + " -i exec:<path> custom program run on provided path.\n" + "Each instance arg can optionally have custom env provided, eg. <cmd>,ENV=VAR,ENV=VAR...\n" + ) cmd_parser.add_argument("files", nargs="+", help="input test files") cmd_args = cmd_parser.parse_args() |
