cereal/messaging/tests
Kacper Rączy 4e063ca166
FakeSubSocket and FakePubSocket for IPC synchronization (#439)
* Implementation of FakeSubSocket and FakePubSocket using eventfd with support for one-in/one-out synchronization

* Expose FakeEvent to Python

* Add demo showcasing synchronization between processes

* Fix linter errors

* Expose more FakeEvent APIs in Python bindings

* Add FakePoller implementation

* Remove suffix from poll env vars

* Set poller timeout to zero when events are enabled

* Replace poll with ppoll. Add invalidation methods

* Fix lint issues

* Fix comment indent

* Remove fake_demo

* Remove FakePubSocket. Simpler FakePoller implementation. Ability to wait for multiple events

* Rename FakeEvent to Event and move it to event.cc

* Rename event purpose constants in py

* Add support for timeout in wait methods

* Add tests for events and fake sockets

* Fix lint errors

* Add zmq sleeps

* Temporarly disable TestFakeSockets on ZMQ

* Add exception type specifiers to test_fake

* Event Manager implementation

* Fix fake sockets tests

* Update EventManager API

* Add test for enable/disable

* Add tests for cereal prefix

* Remove EventPurpose from python bindings

* Fix lint issues

* event_state_shm_mmap implementation shared by EventManager and FakeSubSocket

* Rename EventManager to SocketEventHandle

* More renames
2023-05-23 19:38:52 +02:00
..
__init__.py run python unittest in ci 2019-11-20 17:31:33 -08:00
test_fake.py FakeSubSocket and FakePubSocket for IPC synchronization (#439) 2023-05-23 19:38:52 +02:00
test_messaging.py Best practice (#107) 2021-02-16 21:09:50 -08:00
test_poller.py Switch send to using bytes. (#93) 2020-10-06 17:15:01 -07:00
test_pub_sub_master.py Tests for lower level messaging functions (#73) 2020-07-27 17:30:45 -07:00
test_services.py Sensor events splitup (#357) 2022-09-27 15:28:22 -07:00