On Tue, Aug 06, 2024 at 01:52:43PM +0100, Ivan Orlov wrote: > -TEST_GEN_PROGS := mixer-test pcm-test test-pcmtest-driver > +TEST_GEN_PROGS := mixer-test pcm-test utimer-test test-pcmtest-driver global-timer This is adding the timer timer tests as standard kselftests to be run by the wrapper script... > index 000000000000..c15ec0ba851a > --- /dev/null > +++ b/tools/testing/selftests/alsa/global-timer.c > +int main(int argc, char *argv[]) > +{ > + int device, subdevice, timeout; > + > + if (argc < 4) { > + perror("Usage: %s <device> <subdevice> <timeout>"); > + return EXIT_FAILURE; > + } ...but this requires specific arguments to be run which the kselftest runner won't supply. I'd expect it to be a good default to enumerate and test every possible device and generate a test for each. However it looks like this is really intended not as a standalone test but rather as something run from within utimer-test, in that case it should be a TEST_GEN_PROGS_EXTENDED.
Attachment:
signature.asc
Description: PGP signature