Joshua Grisham
7460e0dec4
sdcp-v2: Move SDCP support from using NSS to OpenSSL 3.0 and implement for egismoc
2025-08-28 21:01:54 +02:00
Benjamin Berg
c74a0d4592
sdcp-device: Use a key DB for testing
2025-07-20 01:14:03 +02:00
Benjamin Berg
4e811f7b63
tests: Add SDCP virtual device test
2025-07-20 01:07:24 +02:00
Marco Trevisan (Treviño)
c37da8568f
build: Use fs to get files basename
...
We can safely bump meson
2025-02-20 18:41:27 +01:00
Marco Trevisan (Treviño)
e401fc10e8
build: Do not use deprecated features in meson
2025-02-20 18:28:15 +01:00
Marco Trevisan (Treviño)
7208b29756
tests: Ignore testing external tools with valgrind
2025-02-20 15:50:46 +00:00
Marco Trevisan (Treviño)
c6ca915067
tests: Validate the generated metainfo if appstreamcli is available
2025-02-20 15:50:46 +00:00
Marco Trevisan (Treviño)
0c315b4f0a
tests/goodixmoc: Add explicit test on print description
...
So that we can ensure that what we get from device matches
2025-02-13 23:51:52 +00:00
Marco Trevisan (Treviño)
3e653fe85b
build/tests: Increase timeout multiplier in valgrind
...
CI is quite slow these days, so let's give valgrind more time
2025-02-13 23:51:52 +00:00
Marco Trevisan (Treviño)
830a9977c0
build: Support running tests with memory sanitizers
...
When memory sanitizers are set, tests may fail because we are indirectly
LD_PRELOAD'ing (through umockdev). While we could ensure that sanitizer
libraries are loaded first, it's just something we don't care because we
don't want to test the launcher wrappers themselves.
So, let's just ignore the link order and live with it
2025-02-13 23:51:52 +00:00
Marco Trevisan (Treviño)
57c535d0cb
libfprint.supp: Ignore libusb context init potential leak
2025-02-13 18:52:24 +00:00
Marco Trevisan (Treviño)
6702c32b2b
tests/meson: Ignore debug messages when generating hwdb
2025-02-13 19:31:16 +01:00
Marco Trevisan (Treviño)
b8ed4b5d63
tests/virtual-image: Use sleep multiplier when running under valgrind
2025-02-13 18:46:15 +01:00
Marco Trevisan (Treviño)
8433563602
tests: Do not enable virtual device hot seconds under valgrind
...
Valgrind tests may be slow, leading the devices to be considered hot.
We don't disable this for other tests, since we may still want to be
sure that the logic is fine for normal usage
2025-02-13 18:46:15 +01:00
Marco Trevisan (Treviño)
3abdda4391
tests/virtual-image: Do not send images or retries if driver is not waiting finger
2025-02-13 03:36:52 +01:00
Marco Trevisan (Treviño)
28b9ab7e37
tests: Ignore more python leaks
2025-02-12 20:36:46 +00:00
huan_huang
a88582761f
realtek: add support for rts5816
...
Signed-off-by: huan_huang <huan_huang@realsil.com.cn >
2024-09-03 04:44:04 +02:00
Tamer Hassan
990bd40cbf
egismoc: add 0586 support
2024-08-30 04:42:56 +02:00
Tamer Hassan
c7e95bb41f
egismoc: add 0587 support (also supports 0586 but missing device file)
2024-08-30 04:42:56 +02:00
Marco Trevisan (Treviño)
7dbb21e77a
build/tests: Skip a test if the test requires it during inspection
...
In case we don't have dependencies, we should skip the test, otherwise
we can just fail at test time
2024-02-20 08:25:53 +01:00
Marco Trevisan (Treviño)
4b72f27de6
build: Look for sh just once
2024-02-20 08:22:42 +01:00
Marco Trevisan (Treviño)
5501dc7b47
build: Stop using deprecated dep.get_pkgconfig_variable() method
...
Use generic get_variable() instead
2024-02-20 01:02:00 +01:00
Joshua Grisham
89ab54794e
egismoc: added test and capture for 05a1 variant
2024-02-19 16:16:02 +01:00
Joshua Grisham
0b9a64331f
Initial commit of egismoc driver
2024-02-19 16:16:02 +01:00
Marco Trevisan (Treviño)
92c5fc4643
cleanup: Use allow/deny lists instead of color based ones
...
There was nothing racist on those names here (what? Do human races even
exist?!), but let's avoid any confusion.
2024-02-13 15:19:47 +01:00
xiaofei
631da4654f
focaltechmoc:Support FocalTech moc devices
...
Supported UID: 0x2808
Supported PIDs: 0x9E48, 0xD979, 0xa959
2024-02-13 14:34:12 +01:00
Mohammed Anas
1701d72ff9
tests: make mktemp command call work with Chimera Linux's mktemp
...
On Chimera Linux, which uses FreeBSD's userland tools, the original call
fails with the following error:
mktemp: mkstemp failed on /tmp/libfprint-XXXXXX.hwdb: Invalid argument
Moving the X's to the end of the template passed to `mktemp` fixes the
error, and also works with GNU's `mktemp`.
2024-01-22 15:52:46 +00:00
Mohammed Anas
d3ec9a80d3
tests: remove Bash dependency in favor of sh
...
The script works just fine with `sh`.
Also replace nonstandard `test` operator `==` with the standard `=`.
The other changes are mostly cosmetic.
2024-01-22 15:27:33 +00:00
huan_huang
79be91831c
drivers: add realtek rts5813 driver
2023-10-27 13:21:06 +00:00
Marco Trevisan (Treviño)
af3dca9003
tests/egis0570/capture.pcapng: Remove execution permission
2023-08-22 23:08:55 +00:00
Marco Trevisan (Treviño)
1372d6f081
tests: Use native GTest utils to generate assets names
2023-08-21 14:19:27 +00:00
Marco Trevisan (Treviño)
ba3cc04e84
tests: Add support for installed tests
...
They allow distrubtions to check whether libfprint continues working as
expected, in different contexts.
2023-06-28 16:35:16 +02:00
Marco Trevisan (Treviño)
f49879b522
tests/virtual-image: Support passing specific FP_PRINTS_PATH env variable
2023-06-24 00:28:04 +02:00
Marco Trevisan (Treviño)
5e0bf2446b
meson: Bump requirements to 0.56 and adapt deprecated functions
2023-06-24 00:28:04 +02:00
Marco Trevisan (Treviño)
4d96a3efaa
tests/virtual-device: Check that removed devices are not in context anymore
2023-06-23 18:20:04 +02:00
Marco Trevisan (Treviño)
c27d72e3a1
tests/virtual-device: Do not preserve context on unplug tests
...
The unplug tests assume that the device is removed from the context once
they run, however we may have left the device around in a removed state
causing other tests to fail.
So isolate them in a new class where we create context and device
instances every time we run a test case.
2023-06-22 06:59:00 +02:00
Marco Trevisan (Treviño)
28579239a6
tests/virtual-device: Reset keep alive status when test is done
...
We don't want this to be preserved across tests, since it's meant to be
used inside a single test case.
2023-06-22 06:55:44 +02:00
Marco Trevisan (Treviño)
e48d2b467a
tests/virtual-device: Restore default enroll steps on tearDown
...
When running the tests as a single script we may leave the device in an
inconsistent state, so reset the enroll steps when done.
2023-06-22 06:55:44 +02:00
Marco Trevisan (Treviño)
b6223a9d0a
test-fpi-device: Only push pragma -wdanging-pointer in newer GCC versions
...
It may not be supported and warn otherwise
2023-03-15 15:23:17 +00:00
Enrik Berkhan
86566e8d0b
goodixmoc: Fix missing "enroll create" state
...
After the driver internal duplicate check had been removed in
46669e9f53 , all templates were saved with
an all-zeroes template ID.
By going through FP_ENROLL_CREATE before starting to capture, the
template ID returned from the device is taken into account again.
Signed-off-by: Enrik Berkhan <Enrik.Berkhan@inka.de >
2023-01-19 20:28:33 +01:00
Zoltán Böszörményi
5e52ad2ad1
upektc_img: Add new unit test for the TCS1s chip variant
2023-01-17 19:50:21 +00:00
Vasily Khoruzhick
db2fa81358
tests: valgrind: update python and libfprint suppressions list
2023-01-10 11:15:17 -08:00
Vasily Khoruzhick
d492901c3e
tests: valgrind: generate suppressions list for new tests-suppress-new-valgrind-errors-in-python
...
That will help with updating suppresions lists in future
2023-01-10 11:14:51 -08:00
Marco Trevisan (Treviño)
1f1ed80dbf
test-device-fake: Add more logging showing the current device action
2022-10-13 20:31:28 +00:00
Marco Trevisan (Treviño)
892c9767a2
tests: Be stricter on valgrind leak checks
...
We used to ignore leaks, and we are ending up in having various of them,
so let's make valgrind to exit with error when using the valgrind test
setup (so in CI) to catch them better.
2022-10-13 05:20:28 +02:00
Marco Trevisan (Treviño)
abd7c66833
fp-device: Do not setup current action before updating temperature
...
At every action we update the device temperature, and this can
potentially lead to a failure, if the temperature is too hot.
However in such case we were failing a task that we had just stolen,
causing an error, tasks never returning and the device was left in an
undefined state.
So, just return early in case temperature is too hot, as we don't really
need to have the current task or action set at this point because
there's no active action to cancel yet.
This was causing random errors when running tests under valgrind
2022-10-13 05:04:03 +02:00
Marco Trevisan (Treviño)
a86ab6c854
test-fpi-device: Cleanup the device ID / driver before overriding it
...
Otherwise we'd leak the one that was initially set.
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño)
b04eed0aea
test-device-fake: Consume the identify print if we're returning with error
2022-10-13 05:04:02 +02:00
Marco Trevisan (Treviño)
0b6a92150c
tests/fpcmoc: Ensure python tests exit with error on every exception
...
We ignored assertions happening on callbacks as they only raise
exceptions that does not stop the execution.
So ensure that this is happening in all the tests as synaptics was
doing already
Same as commit: be8888431
2022-10-13 04:26:58 +02:00
Haowei Lo
cca2b6a624
fpcmoc: Support FPC moc devices
...
Supported PID: 0xFFE0/A305/D805/DA04/D205
2022-10-11 08:11:38 +00:00