Evangelos Ribeiro Tzaras
72c7d3ba25
tests/integration: Test that "feedback-ended" is propagated through LfbEvent
...
When no feedbacks are available (either because the requested event does
not exist in the theme or because the system does not have required
capabilities, e.g. no vibration motor or LED) feedbackd will emit a
"feedback-ended" signal (with reason LFB_EVENT_STATE_REASON_NOT_FOUND)
on DBus _before_ completing the event triggering DBus call.
Since the DBus call was not completed yet, LfbEvent will not have
learned it's ID yet and therefore not emit it's own "feedback-ended"
GObject signal.
In this case the test will timeout since the main loop is never quit.
2022-11-09 11:54:44 +01:00
Evangelos Ribeiro Tzaras
efca781f7f
tests/integration: Fix whitespace
...
Remove all tabs in favour of spaces and align function arguments.
2022-11-09 11:54:06 +01:00
Evangelos Ribeiro Tzaras
15d33f4f85
tests/integration: Indicate that callback quits main loop
...
on_event_triggered() is renamed to on_event_triggered_quit()
as we will shortly introduce a variant that does not quit.
2022-11-09 11:50:10 +01:00
Guido Günther
437d8290bf
tests/integration: Check the state of the ended event
2022-10-12 10:19:03 +02:00
Guido Günther
e782032efd
tests: Drop unused variable
2022-10-12 10:19:03 +02:00
Evangelos Ribeiro Tzaras
21399aec6e
test-lfb-integration: Test event state in async callback
2022-10-11 12:32:26 +02:00
Guido Günther
a7a123a0b7
tests: Remove unused variables
2022-02-04 19:03:00 +01:00
Guido Günther
66bcb31a0e
fbd-event: Add sender property
...
This allows us to store the DBus sender
2021-04-22 14:43:30 +02:00
Guido Günther
0936b5fb09
tests: Run event tests too
2021-04-22 14:43:30 +02:00
Guido Günther
53a02c719c
test-lfb-integration: Test invocation error
2021-02-05 16:56:24 +01:00
Guido Günther
d6e3df7ebc
tests: Run lfb_event_{get,set}_timeout
2021-02-05 16:56:24 +01:00
Guido Günther
fb076254c9
tests: Test event not found case too
2020-07-24 11:58:26 +02:00
Guido Günther
cfab476edb
tests: Don't check end reason in feedback handler
...
This allows to reuse the feedback handler and we check the
reason in the actual test function anyway.
2020-07-24 11:58:26 +02:00
Guido Günther
3a378552af
tests: Use async feedback as the test name implies
2020-07-13 16:06:44 +02:00
Guido Günther
134d60c73b
tests: Don't quiet mainloop on event end
...
This is needed to properly test aync where we have the
finished async event handler and the signal.
2020-07-13 10:16:20 +02:00
Guido Günther
50aeb79ec9
LfbEvent: Add feedback-profile property
...
This allows to specify the feedback profile to use for
this particular event.
2020-07-10 09:20:04 +00:00
Rasmus Thomsen
851b46f4a4
build: add proper dependencies on gdbus-codgen-generated headers
...
Without this it was possible that ninja built a target that needs
the generated header before the header was generated
fixes #14
2020-04-24 15:25:11 +02:00
Guido Günther
3663b7d149
Initial commit
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2020-02-14 17:40:34 +01:00