summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr_unittest.py
Commit message (Collapse)AuthorAgeFilesLines
* runtime: pep8 formattingJosh Morman2021-11-241-16/+12
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* runtime: Custom Buffer/Accelerator Device Support - Milestone 1David Sorber2021-10-251-0/+19
| | | | | | | | | | | | | | | Custom Buffer/Accelerator Device Support - Milestone 1 changes: * Refactored existing single mapped buffer code and created single mapped buffer abstraction; wrapping within single mapped buffers is handled explicitly by input blocked and output blocked callbacks that are called from block_executor * Added simple custom buffer allocation interface (NOTE: this interface will change for milestone 2) * Accelerated blocks are still responsible for data transfer but the custom buffer interface eliminates the double copy problem Signed-off-by: David Sorber <david.sorber@blacklynx.tech>
* runtime: gr_unittest: Add waitFor() API callMartin Braun2021-03-031-0/+41
| | | | | | | This is a helper for adding conditional waits into test cases. Useful for tests with a non-deterministic execution time. Signed-off-by: Martin Braun <martin.braun@ettus.com>
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-3/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* runtime: fix gr_unittest floatAlmostEqualNicolas Cuervo2020-01-021-8/+8
| | | | | | The call inside this assert was using a generator inside the standard all(), which was always returning `False`, and silently passing the test, instead of actually asserting in fail. Changing to list comprehension for assertion raising
* runtime: unittest: Remove XML runnerMartin Braun2018-12-191-42/+5
| | | | | This is a module that will run unit tests twice, once for XML output, and once for stdout output. It is no longer necessary.
* runtime: gr_unittest: Fix Pylint warnings in gr_unittest.pyMartin Braun2018-12-191-43/+48
| | | | | | - Harmonized function argument names - Used iterator comprehensions instead of loops - General Pylint whitespace complaints
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-26/+37
|\
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-241-25/+36
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| | * python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-25/+36
| | |
* | | tests: added option to pass verbosity parameter (and fixed some styling)Gilad Beeri2018-06-231-5/+7
|/ /
* / Comment typo fixing.luz.paz2018-02-031-1/+1
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* runtime: migrate remaining gnuradio-core contents into gnuradio-runtimeJohnathan Corgan2013-03-261-0/+170