[LTP] [PATCH v2 0/2] Update test timeouts in an automated way

Andrea Cervesato andrea.cervesato@suse.de
Wed Jan 22 14:26:39 CET 2025


First patch adds a script that can parse kirk test results, calculate
timeouts and patch tests with the newly calculated timeouts.

Second patch updates tests timeouts using this script with a results
captured on RPi zero.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- override timeout only if test's timeout is bigger than the one
  calculated
- use '..' relative path for LTP source code
- Link to v1: https://lore.kernel.org/r/20250122-cyril_script_update_timeouts-v1-0-5f668bbc6e0c@suse.com

---
Cyril Hrubis (2):
      scripts: Add simple script for calculating timeouts
      syscalls: Update test timeouts

 scripts/calctimeouts.py                            | 232 +++++++++++++++++++++
 testcases/kernel/syscalls/access/access01.c        |   1 +
 testcases/kernel/syscalls/add_key/add_key05.c      |   1 +
 testcases/kernel/syscalls/alarm/alarm05.c          |   1 +
 testcases/kernel/syscalls/alarm/alarm06.c          |   1 +
 testcases/kernel/syscalls/alarm/alarm07.c          |   1 +
 testcases/kernel/syscalls/bind/bind04.c            |   1 +
 testcases/kernel/syscalls/bpf/bpf_prog05.c         |   1 +
 testcases/kernel/syscalls/bpf/bpf_prog06.c         |   1 +
 testcases/kernel/syscalls/bpf/bpf_prog07.c         |   1 +
 testcases/kernel/syscalls/cachestat/cachestat01.c  |   1 +
 testcases/kernel/syscalls/cachestat/cachestat04.c  |   1 +
 testcases/kernel/syscalls/chdir/chdir01.c          |   1 +
 .../kernel/syscalls/clock_gettime/leapsec01.c      |   1 +
 .../syscalls/clock_nanosleep/clock_nanosleep01.c   |   1 +
 .../syscalls/clock_settime/clock_settime03.c       |   1 +
 .../kernel/syscalls/close_range/close_range01.c    |   1 +
 testcases/kernel/syscalls/connect/connect02.c      |   1 +
 testcases/kernel/syscalls/creat/creat05.c          |   1 +
 testcases/kernel/syscalls/creat/creat09.c          |   1 +
 testcases/kernel/syscalls/execve/execve05.c        |   1 +
 testcases/kernel/syscalls/execveat/execveat03.c    |   1 +
 testcases/kernel/syscalls/fallocate/fallocate04.c  |   1 +
 testcases/kernel/syscalls/fallocate/fallocate05.c  |   1 +
 testcases/kernel/syscalls/fallocate/fallocate06.c  |   2 +-
 testcases/kernel/syscalls/fanotify/fanotify01.c    |   1 +
 testcases/kernel/syscalls/fanotify/fanotify03.c    |   1 +
 testcases/kernel/syscalls/fanotify/fanotify05.c    |   1 +
 testcases/kernel/syscalls/fanotify/fanotify06.c    |   1 +
 testcases/kernel/syscalls/fanotify/fanotify09.c    |   1 +
 testcases/kernel/syscalls/fanotify/fanotify10.c    |   1 +
 testcases/kernel/syscalls/fchmodat2/fchmodat2_01.c |   1 +
 testcases/kernel/syscalls/fcntl/fcntl14.c          |   1 +
 testcases/kernel/syscalls/fcntl/fcntl36.c          |   1 +
 testcases/kernel/syscalls/fdatasync/fdatasync03.c  |   1 +
 testcases/kernel/syscalls/fgetxattr/fgetxattr01.c  |   1 +
 .../kernel/syscalls/fremovexattr/fremovexattr01.c  |   1 +
 .../kernel/syscalls/fremovexattr/fremovexattr02.c  |   1 +
 testcases/kernel/syscalls/fsconfig/fsconfig01.c    |   1 +
 testcases/kernel/syscalls/fsconfig/fsconfig03.c    |   1 +
 testcases/kernel/syscalls/fsetxattr/fsetxattr01.c  |   1 +
 testcases/kernel/syscalls/fsmount/fsmount01.c      |   1 +
 testcases/kernel/syscalls/fsmount/fsmount02.c      |   1 +
 testcases/kernel/syscalls/fsopen/fsopen01.c        |   1 +
 testcases/kernel/syscalls/fspick/fspick01.c        |   1 +
 testcases/kernel/syscalls/fspick/fspick02.c        |   1 +
 testcases/kernel/syscalls/fstatfs/fstatfs01.c      |   1 +
 testcases/kernel/syscalls/fsync/fsync01.c          |   1 +
 testcases/kernel/syscalls/fsync/fsync04.c          |   1 +
 testcases/kernel/syscalls/getpid/getpid01.c        |   1 +
 testcases/kernel/syscalls/getxattr/getxattr02.c    |   1 +
 testcases/kernel/syscalls/getxattr/getxattr03.c    |   1 +
 testcases/kernel/syscalls/inotify/inotify03.c      |   1 +
 testcases/kernel/syscalls/inotify/inotify05.c      |   1 +
 testcases/kernel/syscalls/inotify/inotify07.c      |   1 +
 testcases/kernel/syscalls/inotify/inotify08.c      |   1 +
 testcases/kernel/syscalls/inotify/inotify11.c      |   1 +
 testcases/kernel/syscalls/ioctl/ioctl02.c          |   1 +
 testcases/kernel/syscalls/ioctl/ioctl04.c          |   1 +
 testcases/kernel/syscalls/ioctl/ioctl08.c          |   1 +
 testcases/kernel/syscalls/ioctl/ioctl09.c          |   1 +
 testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c  |   1 +
 testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c  |   1 +
 .../kernel/syscalls/ioctl/ioctl_ficlonerange01.c   |   1 +
 .../kernel/syscalls/ioctl/ioctl_ficlonerange02.c   |   1 +
 testcases/kernel/syscalls/ioctl/ioctl_loop01.c     |   1 +
 66 files changed, 297 insertions(+), 1 deletion(-)
---
base-commit: d3df587ed1ee3f881f802f5060506a8192c38e0d
change-id: 20250121-cyril_script_update_timeouts-4acc3c00b3dc

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>



More information about the ltp mailing list