README 1003 B

123456789101112131415161718
  1. This directory contains tests for various functionality areas of MicroPython.
  2. To run all stable tests, run "run-tests" script in this directory.
  3. Tests of capabilities not supported on all platforms should be written
  4. to check for the capability being present. If it is not, the test
  5. should merely output 'SKIP' followed by the line terminator, and call
  6. sys.exit() to raise SystemExit, instead of attempting to test the
  7. missing capability. The testing framework (run-tests in this
  8. directory, test_main.c in qemu_arm) recognizes this as a skipped test.
  9. There are a few features for which this mechanism cannot be used to
  10. condition a test. The run-tests script uses small scripts in the
  11. feature_check directory to check whether each such feature is present,
  12. and skips the relevant tests if not.
  13. When creating new tests, anything that relies on float support should go in the
  14. float/ subdirectory. Anything that relies on import x, where x is not a built-in
  15. module, should go in the import/ subdirectory.