meson: List single unit python tests allowing to run them separately
We run a certain number of tests right now, without being able to easily run them separated or to check which one failed.
So add a script to inspect all the available unittests per each python script and use it to figure out the tests we can run in meson.
As per this, define a global 'python_tests' variable in meson that allows to register new python tests easily without having to repeat the settings for all the tests.
For each test we have, we check if we can fetch a list of unit tests, and if possible we create a meson test for each one. Otherwise we just fallback to normal behavior.
This generated this lists of tests now (with even some speedup, since they can safely run in parallel) when using meson test --list
Since the python files are monitored with files()
, the list of tests is updated whenever one of the test python file is touched.
fprintd / net.reactivated.fprint.device.policy
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_allowed_claim
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_enroll_delete2
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_enroll_verify_list_delete
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_multiple_claims
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unallowed_claim
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unallowed_release
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_delete_enrolled_fingers
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_delete_enrolled_fingers2
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_enroll_start
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_enroll_stop
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_list_enrolled_fingers
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_release
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_verify_start
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_unclaimed_verify_stop
fprintd:daemon+fprintd+FPrintdVirtualDeviceTest / FPrintdVirtualDeviceTest.test_wrong_finger_enroll_start
fprintd:daemon+test_fprintd_utils+TestFprintd / TestFprintd.test_fprintd_delete
fprintd:daemon+test_fprintd_utils+TestFprintd / TestFprintd.test_fprintd_enroll
fprintd:daemon+test_fprintd_utils+TestFprintd / TestFprintd.test_fprintd_list
fprintd:daemon+test_fprintd_utils+TestFprintd / TestFprintd.test_fprintd_verify
fprintd:daemon+test_fprintd_utils+TestFprintd / TestFprintd.test_fprintd_verify_script
fprintd:PAM+test_pam_fprintd+TestPamFprintd / TestPamFprintd.test_pam_fprintd_auth
fprintd:PAM+test_pam_fprintd+TestPamFprintd / TestPamFprintd.test_pam_fprintd_dual_reader_auth
fprintd:PAM+test_pam_fprintd+TestPamFprintd / TestPamFprintd.test_pam_fprintd_failed_auth
fprintd:PAM+test_pam_fprintd+TestPamFprintd / TestPamFprintd.test_pam_fprintd_last_try_auth
fprintd:PAM+test_pam_fprintd+TestPamFprintd / TestPamFprintd.test_pam_timeout
fprintd:dist / check-translations
fprintd:dist / check-translations