8 Commits

Author SHA1 Message Date
Guido Günther
fe56bdba12 tests: Skip some test when fr_FR locale isn't available
Some test require that locale so skip those when it is unavailable.

Closes: #392
2024-04-07 16:13:08 +00:00
Sicelo A. Mhlongo
9833a28080 support switch-type proximity sensors
Support binary, switch-type proximity sensors. They are are exposed over the
input subsystem, emitting the SW_FRONT_PROXIMITY event code.

Also provide simple tests, based on the tests for evdev-based accelerometers.

Fixes #363
2024-03-12 01:26:47 +02:00
Bastien Nocera
48cb957c41 tests: Add test for available sampling frequencies
Add 2 tests for parsing the *sampling_frequency_available sysfs attribute
and then picking the closest supported value higher then the desired 10 Hz:

1: Check whether the sampling frequency gets corrected to >= 10Hz,
   integer numbers sorted low to high

2: Check whether the sampling frequency gets corrected to >= 10Hz,
   double numbers sorted high to low
2023-04-21 18:08:57 +02:00
Bastien Nocera
40e055b7c8 tests: Fix error running tests with Python 3.11
In 664448d81f
the "errors" attribute was removed from the _Outcome object. Adapt the
code to print the daemon log after a failed run().
2022-06-24 13:32:52 +02:00
Bastien Nocera
e4f0e05af3 tests: Make tests a build option
And don't skip tests if any test dependencies are missing.
2022-04-04 17:51:47 +02:00
Bastien Nocera
7124a42d34 tests: Bump timeout when running under valgrind 2022-03-25 16:55:38 +01:00
Bastien Nocera
abd16b5911 tests: Start mock polkitd in the tests
And allow all us to perform all the actions.
2021-09-29 11:54:26 +02:00
Bastien Nocera
74b71d9a3b tests: Rename integration test script
Add the python suffix.
2021-09-07 10:50:35 +02:00