From 6129b8e401c36cc68e0f7ba8180da27a40d17621 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 11 Mar 2021 16:09:27 +1100 Subject: tests: Rename run-tests to run-tests.py for consistency. Signed-off-by: Damien George --- docs/develop/gettingstarted.rst | 2 +- docs/develop/writingtests.rst | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/develop') diff --git a/docs/develop/gettingstarted.rst b/docs/develop/gettingstarted.rst index 3dd00a579..32435ebe1 100644 --- a/docs/develop/gettingstarted.rst +++ b/docs/develop/gettingstarted.rst @@ -273,7 +273,7 @@ To run a selection of tests on a board/device connected over USB use: .. code-block:: bash $ cd tests - $ ./run-tests --target minimal --device /dev/ttyACM0 + $ ./run-tests.py --target minimal --device /dev/ttyACM0 See also :ref:`writingtests`. diff --git a/docs/develop/writingtests.rst b/docs/develop/writingtests.rst index 4bdf4dd7a..9bb5178f5 100644 --- a/docs/develop/writingtests.rst +++ b/docs/develop/writingtests.rst @@ -4,7 +4,7 @@ Writing tests ============= Tests in MicroPython are located at the path ``tests/``. The following is a listing of -key directories and the run-tests runner script: +key directories and the run-tests.py runner script: .. code-block:: bash @@ -13,7 +13,7 @@ key directories and the run-tests runner script: ├── extmod ├── float ├── micropython - ├── run-tests + ├── run-tests.py ... There are subfolders maintained to categorize the tests. Add a test by creating a new file in one of the @@ -54,17 +54,17 @@ The other way to run tests, which is useful when running on targets other than t .. code-block:: bash $ cd tests - $ ./run-tests + $ ./run-tests.py Then to run on a board: .. code-block:: bash - $ ./run-tests --target minimal --device /dev/ttyACM0 + $ ./run-tests.py --target minimal --device /dev/ttyACM0 And to run only a certain set of tests (eg a directory): .. code-block:: bash - $ ./run-tests -d basics - $ ./run-tests float/builtin*.py + $ ./run-tests.py -d basics + $ ./run-tests.py float/builtin*.py -- cgit v1.2.3