public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] Update test timeouts in an automated way
@ 2025-01-22 12:48 Andrea Cervesato
  2025-01-22 12:48 ` [LTP] [PATCH 1/2] scripts: Add simple script for calculating timeouts Andrea Cervesato
  2025-01-22 12:48 ` [LTP] [PATCH 2/2] syscalls: Update test timeouts Andrea Cervesato
  0 siblings, 2 replies; 8+ messages in thread
From: Andrea Cervesato @ 2025-01-22 12:48 UTC (permalink / raw)
  To: ltp

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>
---
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>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [LTP] [PATCH 0/2] Update test timeouts in an automated way
@ 2025-01-21 12:34 Cyril Hrubis
  2025-01-21 12:34 ` [LTP] [PATCH 1/2] scripts: Add simple script for calculating timeouts Cyril Hrubis
  0 siblings, 1 reply; 8+ messages in thread
From: Cyril Hrubis @ 2025-01-21 12:34 UTC (permalink / raw)
  To: ltp

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.

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

 scripts/calc_timeouts.py                      | 133 ++++++++++++++++++
 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 +
 .../kernel/syscalls/cachestat/cachestat01.c   |   1 +
 .../kernel/syscalls/cachestat/cachestat04.c   |   1 +
 testcases/kernel/syscalls/chdir/chdir01.c     |   1 +
 .../kernel/syscalls/clock_gettime/leapsec01.c |   1 +
 .../clock_nanosleep/clock_nanosleep01.c       |   1 +
 .../syscalls/clock_settime/clock_settime03.c  |   1 +
 .../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 +
 .../kernel/syscalls/execveat/execveat03.c     |   1 +
 .../kernel/syscalls/fallocate/fallocate04.c   |   1 +
 .../kernel/syscalls/fallocate/fallocate05.c   |   1 +
 .../kernel/syscalls/fallocate/fallocate06.c   |   2 +-
 .../kernel/syscalls/fanotify/fanotify01.c     |   1 +
 .../kernel/syscalls/fanotify/fanotify03.c     |   1 +
 .../kernel/syscalls/fanotify/fanotify05.c     |   1 +
 .../kernel/syscalls/fanotify/fanotify06.c     |   1 +
 .../kernel/syscalls/fanotify/fanotify09.c     |   1 +
 .../kernel/syscalls/fanotify/fanotify10.c     |   1 +
 .../kernel/syscalls/fchmodat2/fchmodat2_01.c  |   1 +
 testcases/kernel/syscalls/fcntl/fcntl14.c     |   1 +
 testcases/kernel/syscalls/fcntl/fcntl36.c     |   1 +
 .../kernel/syscalls/fdatasync/fdatasync03.c   |   1 +
 .../kernel/syscalls/fgetxattr/fgetxattr01.c   |   1 +
 .../syscalls/fremovexattr/fremovexattr01.c    |   1 +
 .../syscalls/fremovexattr/fremovexattr02.c    |   1 +
 .../kernel/syscalls/fsconfig/fsconfig01.c     |   1 +
 .../kernel/syscalls/fsconfig/fsconfig03.c     |   1 +
 .../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 +
 .../kernel/syscalls/getxattr/getxattr02.c     |   1 +
 .../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 +
 .../kernel/syscalls/ioctl/ioctl_ficlone02.c   |   1 +
 .../kernel/syscalls/ioctl/ioctl_ficlone03.c   |   1 +
 .../syscalls/ioctl/ioctl_ficlonerange01.c     |   1 +
 .../syscalls/ioctl/ioctl_ficlonerange02.c     |   1 +
 .../kernel/syscalls/ioctl/ioctl_loop01.c      |   1 +
 66 files changed, 198 insertions(+), 1 deletion(-)
 create mode 100755 scripts/calc_timeouts.py

-- 
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-22 13:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 12:48 [LTP] [PATCH 0/2] Update test timeouts in an automated way Andrea Cervesato
2025-01-22 12:48 ` [LTP] [PATCH 1/2] scripts: Add simple script for calculating timeouts Andrea Cervesato
2025-01-22 13:13   ` Cyril Hrubis
2025-01-22 12:48 ` [LTP] [PATCH 2/2] syscalls: Update test timeouts Andrea Cervesato
  -- strict thread matches above, loose matches on Subject: below --
2025-01-21 12:34 [LTP] [PATCH 0/2] Update test timeouts in an automated way Cyril Hrubis
2025-01-21 12:34 ` [LTP] [PATCH 1/2] scripts: Add simple script for calculating timeouts Cyril Hrubis
2025-01-21 13:12   ` Andrea Cervesato via ltp
2025-01-21 14:26     ` Cyril Hrubis
2025-01-21 14:32       ` Andrea Cervesato via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox