13:04:03 < ldv> syoung: tests are driven by automake, see https://www.gnu.org/software/automake/manual/html_node/Tests.html
13:04:33 < ldv> Vast majority of tests follow the same pattern:
13:05:20 < ldv> For each test there is an executable invoking some syscalls and strace tracing them,
13:05:53 < ldv> strace prints its output into one file,
13:06:15 < ldv> the test executable prints the expected output into another file,
13:06:37 < ldv> and a small shell script compares these two files.
13:06:57 < ldv> Most of these shell scripts are generated from the table.
13:07:13 < ldv> The table is tests/gen_tests.in
13:08:46 < ldv> You can have a look at commit 7e3abcaa47289bf9e19a334b5d15c5f92934bb0d that added tests for gpio ioctl.
13:09:32 < ldv> and use it as an example of a comprehensive ioctl test.

TestSuiteInfo (last edited 2022-02-03 18:39:15 by eSyr)