micropython/tools/mpremote/tests
Glenn Moloney 2992e34956 tools/mpremote: Add support for relative urls in package.json files.
URLs in `package.json` may now be specified relative to the base URL of the
`package.json` file.

Relative URLs wil work for `package.json` files installed from the web as
well as local file paths.

Docs: update `docs/reference/packages.rst` to add documentation for:

- Installing packages from local filesystems (PR #12476); and
- Using relative URLs in the `package.json` file (PR #12477);
- Update the packaging example to encourage relative URLs as the default
  in `package.json`.

Add `tools/mpremote/tests/test_mip_local_install.sh` to test the
installation of a package from local files using relative URLs in the
`package.json`.

Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
2025-02-24 13:29:40 +11:00
..
README.md tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
run-mpremote-tests.sh tools/mpremote: Make sure stdout and stderr output appear in order. 2024-11-13 11:51:35 +11:00
test_eval_exec_run.sh tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_eval_exec_run.sh.exp tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_filesystem.sh tools/mpremote: Support trailing slash on dest for non-recursive copy. 2024-11-13 11:51:35 +11:00
test_filesystem.sh.exp tools/mpremote: Support trailing slash on dest for non-recursive copy. 2024-11-13 11:51:35 +11:00
test_mip_local_install.sh tools/mpremote: Add support for relative urls in package.json files. 2025-02-24 13:29:40 +11:00
test_mip_local_install.sh.exp tools/mpremote: Add support for relative urls in package.json files. 2025-02-24 13:29:40 +11:00
test_mount.sh tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_mount.sh.exp tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_recursive_cp.sh tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_recursive_cp.sh.exp tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_resume.sh tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00
test_resume.sh.exp tools/mpremote: Add initial regression tests for mpremote. 2024-10-09 16:39:00 +11:00

Tests for mpremote

This directory contains a set of tests for mpremote.

Requirements:

  • A device running MicroPython connected to a serial port on the host.
  • Python 3.x, bash and various Unix tools such as find, mktemp, sed, sort, tr.

To run the tests do:

$ ./run-mpremote-tests.sh

Each test should print "OK" if it passed. Otherwise it will print "CRASH", or "FAIL" and a diff of the expected and actual test output.