summaryrefslogtreecommitdiff
path: root/gr-zeromq/python/zeromq
Commit message (Collapse)AuthorAgeFilesLines
* cmake: change how test files are build when cross compilingPhilip Balister2021-12-031-0/+3
| | | | | | | | | | | | | | | | | | | | * When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
* zeromq: pep8 formattingJosh Morman2021-11-242-2/+3
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* zeromq: qa: Increase timeout for msg source testsMartin Braun2021-02-152-4/+8
| | | | | | | The chosen timeout of 100ms was too short for some cases. Increase to max 2000ms, but check every 200ms. Signed-off-by: Martin Braun <martin@gnuradio.org>
* zeromq: Fix warnings with recv()Martin Braun2021-02-151-3/+4
| | | | | | | | The recv() call on a ZMQ socket produces a warning if the return value is not stored. We follow the advice and check the return value, just in case. Signed-off-by: Martin Braun <martin.braun@ettus.com>
* qa: run autopep8 formatting on qa python filesmormj2020-10-308-55/+134
| | | | | | find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-033-5/+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
* pybind: add hash check to binding file creation (#3472)mormj2020-06-0413-13/+109
|
* zeromq: add pybind11 bindingsJosh Morman2020-06-0428-6/+1000
|
* zmq: Add ZMQ PULL/REQ/SUB Message Source unit testsVasil Velichkov2020-03-103-0/+210
| | | | | | The plain zeromq sockets are used instead of the corresponding ZMQ sink block in order to expose the actual ZMQ interface and test errors like invalid PMT message that cannot be tested with the ZMQ sinks.
* gr-zeromq: Add optional key filteringAndriy Gelman2020-03-022-1/+93
| | | | | | | | | Fixes #2236 Allows to filter a multi-part message by key/topic on a sub source and insert key/topic on a pub sink. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
* Update license header to SPDX formatdevnulling2020-01-279-119/+9
|
* gr-zeromq: Let OS pick free port for testsBrennan Ashton2018-11-285-11/+16
|
* gr-zeromq: Increase socket setup time so tests are more reliableBrennan Ashton2018-11-034-8/+8
| | | | | | The 250ms delay between starting a send and terminating a recv was very boarderline when run on my machine. Increasing this time slightly produces much more reliable results.
* gr-zeromq: Keep qa_zeromq_pub test from blockingBrennan Ashton2018-11-032-3/+11
| | | | | | | | | | | | | | | The core of this issue is the socket may not be ready when add_socket returns from probe_manager. Add a delay to give the socket time. Also make recv non-blocking, if the message is not recevied it will throw an exception. The thread was also calling poll with None. This is bad since if socket never gets the message the thread will wait forever. To help fail fast this patch also sets a time limit on the polling thread. This is referenced in #1261
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-319-24/+33
|\
| * python: Py3k compatAndrej Rode2018-06-231-2/+2
| |
| * Merge branch 'next' into python3Johnathan Corgan2017-04-131-0/+81
| |\
| * \ Merge branch 'next' into python3Johnathan Corgan2017-04-065-23/+45
| |\ \
| * | | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-268-22/+31
| | | |
* | | | zeromq: adds delay to test to allow subscriber to initialize prior to ↵gnieboer2018-03-261-0/+2
| | | | | | | | | | | | | | | | sending data.
* | | | Test: adds swig dirs to python tests to allow ctest to run on win buildsgnieboer2018-03-221-0/+3
| | | |
* | | | zeromq: change ports used in zeromq_sub QAAndrej Rode2018-02-061-3/+3
| |_|/ |/| |
* | | Merge remote-tracking branch 'gnuradio-github/pr/1211'Johnathan Corgan2017-04-131-0/+81
|\ \ \ | |_|/ |/| |
| * | Support receiving multi-part ZeroMQ messagesBrian Orr2017-04-131-0/+81
| |/ | | | | | | | | | | | | | | | | | | ZeroMQ sink blocks will attempt to load all parts of a multi-part message before processing tags and outputting items. Allows senders to take advantage of ZeroMQ's zero-copy message delivery. Add check for incompatible data sizes between ZMQ endpoints. Fixes #1080
* / gr-zeromq: resolve race condition in qa testsAndrej Rode2017-04-025-23/+45
|/
* Merge branch 'maint'Johnathan Corgan2015-11-283-6/+6
|\
| * zeromq: change addresses used in QA to allow parallel ctestJohnathan Corgan2015-11-283-6/+6
| |
* | gr-zeromq: Improve error messagesJohannes Schmitz2015-09-111-2/+2
|/
* zeromq: Add qa code for zeromq_pubsubCamilo Solano2014-05-271-0/+52
|
* zeromq: updates to qa code to wait for completion and pass.Tom Rondeau2014-05-163-5/+14
|
* zeromq: fixing up QA code for vlenJohnathan Corgan2014-05-133-20/+20
|
* zeromq: temporarily removing QA test output to XMLJohnathan Corgan2014-05-133-3/+3
| | | | | | The QA tests are run twice, once for stdout, once for XML out, this causes problems because the network ports don't recycle fast enough and the blocks get 'address in use' errors.
* zeromq: Change string of test nameJohannes Schmitz2014-05-093-6/+7
|
* zeromq: Add qa codeJohannes Schmitz2014-05-091-0/+52
|
* zeromq: Remove ZMQ_NOBLOCK as we are using pollingJohannes Schmitz2014-05-092-4/+4
|
* zeromq: Timeout needs to be in milliseconds for zmq 3.0, close socketsJohannes Schmitz2014-05-092-6/+8
| | | | correctly, cleanup
* zeromq: cleanup QA code, still needs have ZMQ_LINGER set to zeroJohnathan Corgan2014-05-073-16/+20
|
* Merge remote-tracking branch 'iohannez/vlen' into zeromqJohnathan Corgan2014-05-072-0/+100
|\
| * zeromq: Add qa testsJohannes Schmitz2014-05-072-0/+100
| |
* | zeromq: cleanup copyrightJohnathan Corgan2014-05-061-3/+2
|/
* Fix callback function to work with multiple arguments and return NoneJohannes Schmitz2014-04-221-2/+3
| | | | in case of error.
* zeromq: first try at enabling Python. Segfaults in SWIG code.Johnathan Corgan2014-04-224-0/+232