diff options
| author | Thorsten von Eicken | 2020-01-16 09:07:50 -0800 |
|---|---|---|
| committer | Damien George | 2020-01-22 16:35:24 +1100 |
| commit | 5c5f93c1b896a8e73eff2edb3a3f3a2615b3f4de (patch) | |
| tree | abf5248c0c8aa3f47df034fe44012acdca01f682 /tests/README | |
| parent | 3032ae1155db4bd89786f715f5227967d2cb71cf (diff) | |
tests: Make run-tests help and README be more descriptive of behaviour.
Diffstat (limited to 'tests/README')
| -rw-r--r-- | tests/README | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/README b/tests/README index 3458f36a8..f2cd89bb9 100644 --- a/tests/README +++ b/tests/README @@ -13,6 +13,15 @@ condition a test. The run-tests script uses small scripts in the feature_check directory to check whether each such feature is present, and skips the relevant tests if not. +Tests are generally verified by running the test both in MicroPython and +in CPython and comparing the outputs. If the output differs the test fails +and the outputs are saved in a .out and a .exp file respectively. +For tests that cannot be run in CPython, for example because they use +the machine module, a .exp file can be provided next to the test's .py +file. A convenient way to generate that is to run the test, let it fail +(because CPython cannot run it) and then copy the .out file (but not +before checking it manually!) + When creating new tests, anything that relies on float support should go in the float/ subdirectory. Anything that relies on import x, where x is not a built-in module, should go in the import/ subdirectory. |
