All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 00/10] Rewrite shmctl() testcases
@ 2020-09-07 15:01 Cyril Hrubis
  2020-09-07 15:01 ` [LTP] [PATCH v2 01/10] syscalls/ipc: shmctl02: Convert to the new library Cyril Hrubis
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: Cyril Hrubis @ 2020-09-07 15:01 UTC (permalink / raw)
  To: ltp

This patchset mostly rewrites old shmctl testcases from scratch and also
increases the coverage at least threefold.

There are still missing pieces though, there are no test that would
check that shm_atime and shm_dtime are valid as well as shm_lpid as well
as the coverage of ipc_perm is still lacking and should be added later
on.

Changes in v2:

* Redesing shmctl04, the check for max_idx was bogus before

* Fixed shmctl07 to re-read the IPC_STAT and corrected the check

* Fixed shmctl08 ctime check to make sure the field gets updated

* Added fallback for SHM_STAT_ANY

+ Many smaller fixes mostly pointed out by Martin

Cyril Hrubis (10):
  syscalls/ipc: shmctl02: Convert to the new library
  syscalls/ipc: shmctl03: Remove.
  lapi/shm.h: Add SHM_STAT_ANY
  syscalls/ipc: shmctl04: Rewrite from scratch.
  syscalls/ipc: shmctl05 remove lib dependency
  lib/tst_assert: Add TST_ASSERT_ULONG()
  syscalls/ipc: Add shmctl() IPC_INFO test
  syscalls/ipc: Add shmctl07 test
  syscalls/ipc: Add shmctl IPC_SET test
  syscalls/ipc: Rewrite shmctl01

 include/lapi/shm.h                            |  13 +
 include/tst_assert.h                          |   9 +
 lib/tst_assert.c                              |  14 +
 runtest/syscalls                              |   2 +
 runtest/syscalls-ipc                          |   2 +
 .../kernel/syscalls/ipc/shmctl/.gitignore     |   2 +
 testcases/kernel/syscalls/ipc/shmctl/Makefile |   3 +-
 .../kernel/syscalls/ipc/shmctl/shmctl01.c     | 586 ++++++------------
 .../kernel/syscalls/ipc/shmctl/shmctl02.c     | 263 +++-----
 .../kernel/syscalls/ipc/shmctl/shmctl03.c     | 216 +------
 .../kernel/syscalls/ipc/shmctl/shmctl04.c     | 203 +++---
 .../kernel/syscalls/ipc/shmctl/shmctl07.c     |  68 ++
 .../kernel/syscalls/ipc/shmctl/shmctl08.c     | 103 +++
 13 files changed, 625 insertions(+), 859 deletions(-)
 create mode 100644 include/lapi/shm.h
 create mode 100644 testcases/kernel/syscalls/ipc/shmctl/shmctl07.c
 create mode 100644 testcases/kernel/syscalls/ipc/shmctl/shmctl08.c

-- 
2.26.2


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

end of thread, other threads:[~2020-09-10 16:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-07 15:01 [LTP] [PATCH v2 00/10] Rewrite shmctl() testcases Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 01/10] syscalls/ipc: shmctl02: Convert to the new library Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 02/10] syscalls/ipc: shmctl03: Remove Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 03/10] lapi/shm.h: Add SHM_STAT_ANY Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 04/10] syscalls/ipc: shmctl04: Rewrite from scratch Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 05/10] syscalls/ipc: shmctl05 remove lib dependency Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 06/10] lib/tst_assert: Add TST_ASSERT_ULONG() Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 07/10] syscalls/ipc: Add shmctl() IPC_INFO test Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 08/10] syscalls/ipc: Add shmctl07 test Cyril Hrubis
2020-09-07 15:01 ` [LTP] [PATCH v2 09/10] syscalls/ipc: Add shmctl IPC_SET test Cyril Hrubis
2020-09-08  5:34   ` Yang Xu
2020-09-08  6:58     ` Cyril Hrubis
2020-09-08  7:04       ` Yang Xu
2020-09-07 15:01 ` [LTP] [PATCH v2 10/10] syscalls/ipc: Rewrite shmctl01 Cyril Hrubis
2020-09-09  6:32 ` [LTP] [PATCH v2 00/10] Rewrite shmctl() testcases Li Wang
2020-09-10 16:06   ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.