<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/tests/run-tests, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>tests: Rename run-tests to run-tests.py for consistency.</title>
<updated>2021-03-12T08:56:09+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-03-11T05:09:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=6129b8e401c36cc68e0f7ba8180da27a40d17621'/>
<id>6129b8e401c36cc68e0f7ba8180da27a40d17621</id>
<content type='text'>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/run-tests: Change default Python command used on Windows.</title>
<updated>2021-02-02T10:32:20+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2021-01-14T12:23:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=03974485016654de09e42737ea875bc601d5ec56'/>
<id>03974485016654de09e42737ea875bc601d5ec56</id>
<content type='text'>
Default to just calling python since that is most commonly available: the
official installer or zipfiles from python.org, anaconda, nupkg all result
in python being available but not python3.  In other words: the default
used so far is wrong.  Note that os.name is 'posix' when running the python
version which comes with Cygwin or MSys2 so they are not affected by this.
However of all possible ways to get Python on Windows, only Cygwin provides
no python command so update the default way for running tests in the
README.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Default to just calling python since that is most commonly available: the
official installer or zipfiles from python.org, anaconda, nupkg all result
in python being available but not python3.  In other words: the default
used so far is wrong.  Note that os.name is 'posix' when running the python
version which comes with Cygwin or MSys2 so they are not affected by this.
However of all possible ways to get Python on Windows, only Cygwin provides
no python command so update the default way for running tests in the
README.
</pre>
</div>
</content>
</entry>
<entry>
<title>extmod/uasyncio: Fix cancellation handling of wait_for.</title>
<updated>2020-12-02T01:31:37+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-12-01T03:22:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=b505971069333a373d9f0c12138b64dab83fed72'/>
<id>b505971069333a373d9f0c12138b64dab83fed72</id>
<content type='text'>
This commit switches the roles of the helper task from a cancellation task
to a runner task, to get the correct semantics for cancellation of
wait_for.

Some uasyncio tests are now disabled for the native emitter due to issues
with native code generation of generators and yield-from.

Fixes #5797.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit switches the roles of the helper task from a cancellation task
to a runner task, to get the correct semantics for cancellation of
wait_for.

Some uasyncio tests are now disabled for the native emitter due to issues
with native code generation of generators and yield-from.

Fixes #5797.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/run-tests: Update skipped tests on CI for GitHub Actions.</title>
<updated>2020-11-29T23:48:41+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-11-29T23:28:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=02b44a0154aee3cfd2675b4ff180061b2b5bc40d'/>
<id>02b44a0154aee3cfd2675b4ff180061b2b5bc40d</id>
<content type='text'>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/run-tests: Use -BS flags when running CPython.</title>
<updated>2020-09-25T02:27:23+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-09-24T02:03:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=9123b67d641ba708a4ea3e5cd50665f0a73c6c8a'/>
<id>9123b67d641ba708a4ea3e5cd50665f0a73c6c8a</id>
<content type='text'>
The use of -S ensures that only the CPython standard library is accessible,
which makes tests run the same regardless of any site-packages that are
installed.  It also improves start-up time of CPython, reducing the overall
time spent running the test suite.

tests/basics/containment.py is updated to work around issue with old Python
versions not being able to str-format a dict-keys object, which becomes
apparent when -S is used.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The use of -S ensures that only the CPython standard library is accessible,
which makes tests run the same regardless of any site-packages that are
installed.  It also improves start-up time of CPython, reducing the overall
time spent running the test suite.

tests/basics/containment.py is updated to work around issue with old Python
versions not being able to str-format a dict-keys object, which becomes
apparent when -S is used.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Split out complex reverse-op tests to separate test file.</title>
<updated>2020-08-29T04:12:20+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-08-29T04:04:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=0c7354afaf91da3dac2c5ec471603c9e7acc8eac'/>
<id>0c7354afaf91da3dac2c5ec471603c9e7acc8eac</id>
<content type='text'>
So they can be skipped if __rOP__'s are not supported on the target.  Also
fix the typo in the complex_special_methods.py filename.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So they can be skipped if __rOP__'s are not supported on the target.  Also
fix the typo in the complex_special_methods.py filename.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/run-tests: Make test output directory configurable.</title>
<updated>2020-08-27T01:12:08+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2020-04-07T14:19:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=0c3f9d58a5dcf0480460548a416f27d9c8350f3c'/>
<id>0c3f9d58a5dcf0480460548a416f27d9c8350f3c</id>
<content type='text'>
A configurable result directory is advantageous because it enables
using a dedicated location, eventually outside of the source tree,
instead of forcing the output files into a fixed directory which might
also contain other files already. For that reason the default output
directory also has been changed to tests/results/.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A configurable result directory is advantageous because it enables
using a dedicated location, eventually outside of the source tree,
instead of forcing the output files into a fixed directory which might
also contain other files already. For that reason the default output
directory also has been changed to tests/results/.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/run-tests: Use absolute paths where possible.</title>
<updated>2020-08-27T01:12:08+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2020-04-08T06:01:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=405893afc6654ed2ace9a6475bfd2095133e614a'/>
<id>405893afc6654ed2ace9a6475bfd2095133e614a</id>
<content type='text'>
Replace some usages of paths relative to the current working directory
with absolute paths relative to the tests directory.

Fixes and resulting changes:
- default values of MICROPYTHON and MPYCROSS are absolute paths and
  always correct
- likewise, the correct full paths for tools and extmod directories
  are appended to sys.path
- printing/cleaning failures works properly since it expects the .exp
  and .out files in the tests directory which is also where they
  are written to now, plus no more need for changing directories

This fixes #5872 and allows running custom tests which use run-tests
without having to cd to the tests directory first, and the test output
still is in the tests/ directory instead of the current working directory.

Discovery of tests and all skip test logic based on paths relative to
the current working directory remains unchanged which essentially means
that for running most of MicroPython's own tests, run-tests must still
be ran from within it's directory, so document that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace some usages of paths relative to the current working directory
with absolute paths relative to the tests directory.

Fixes and resulting changes:
- default values of MICROPYTHON and MPYCROSS are absolute paths and
  always correct
- likewise, the correct full paths for tools and extmod directories
  are appended to sys.path
- printing/cleaning failures works properly since it expects the .exp
  and .out files in the tests directory which is also where they
  are written to now, plus no more need for changing directories

This fixes #5872 and allows running custom tests which use run-tests
without having to cd to the tests directory first, and the test output
still is in the tests/ directory instead of the current working directory.

Discovery of tests and all skip test logic based on paths relative to
the current working directory remains unchanged which essentially means
that for running most of MicroPython's own tests, run-tests must still
be ran from within it's directory, so document that.
</pre>
</div>
</content>
</entry>
<entry>
<title>py/objcomplex: Add mp_obj_get_complex_maybe for use in complex bin-op.</title>
<updated>2020-06-26T15:03:10+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-06-22T00:21:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=9f911d822ee97edaa94873823db5eb10c31f5f77'/>
<id>9f911d822ee97edaa94873823db5eb10c31f5f77</id>
<content type='text'>
This allows complex binary operations to fail gracefully with unsupported
operation rather than raising an exception, so that special methods work
correctly.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows complex binary operations to fail gracefully with unsupported
operation rather than raising an exception, so that special methods work
correctly.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/basics: Add tests for variable annotations.</title>
<updated>2020-06-16T13:18:01+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-06-16T12:49:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=a51eef4471e01ee60d53ee184bc4feabf6ebd855'/>
<id>a51eef4471e01ee60d53ee184bc4feabf6ebd855</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
