[LTP] [PATCH v4 00/10] Add TDEBUG tst_res() flag

Petr Vorel pvorel@suse.cz
Thu Dec 14 16:19:44 CET 2023


Changes v3->v4:
* Use -D instead of -v. That requires rename options in various tests
* Activate also with TST_ENABLE_DEBUG=1 environment variable
* Add also shell test
* Add 2 shell RFC fixes

Petr Vorel (10):
  lib/tests: Add test for testing tst_res() flags
  tst_test.sh/tst_brk(): Convert only TBROK to TWARN in cleanup
  tst_test.sh/tst_brk(): Allow only TBROK and TCONF
  ioctl02: Rename option -D => -d
  can_filter: Rename option -D => -d
  can_rcv_own_msgs: Rename option -D => -d
  tst_netload(): Rename option -d => -f
  netstress: Rename option -D => -d
  lib: Add support for TDEBUG tst_res() flag
  fsx-linux: Reduce log output with TDEBUG

 doc/C-Test-API.asciidoc                       | 10 +++--
 doc/User-Guidelines.asciidoc                  |  1 +
 include/tst_ansi_color.h                      |  3 ++
 include/tst_common.h                          |  2 +-
 include/tst_res_flags.h                       |  1 +
 include/tst_test.h                            |  5 ++-
 lib/newlib_tests/shell/tst_res_flags.sh       | 24 ++++++++++
 lib/newlib_tests/tst_res_flags.c              | 44 +++++++++++++++++++
 lib/tst_ansi_color.c                          |  3 ++
 lib/tst_res.c                                 |  5 +++
 lib/tst_test.c                                | 19 ++++++++
 runtest/syscalls                              |  2 +-
 testcases/kernel/fs/fsx-linux/fsx-linux.c     | 33 +++++---------
 testcases/kernel/syscalls/ioctl/ioctl02.c     |  2 +-
 testcases/kernel/syscalls/ioctl/test_ioctl    |  2 +-
 testcases/lib/tst_net.sh                      | 12 ++---
 testcases/lib/tst_test.sh                     | 12 ++++-
 testcases/network/busy_poll/busy_poll01.sh    |  2 +-
 testcases/network/busy_poll/busy_poll02.sh    |  2 +-
 testcases/network/busy_poll/busy_poll03.sh    |  2 +-
 .../network/can/filter-tests/can_filter.c     |  2 +-
 .../can/filter-tests/can_rcv_own_msgs.c       |  2 +-
 testcases/network/netstress/netstress.c       |  2 +-
 testcases/network/virt/virt_lib.sh            |  6 +--
 24 files changed, 149 insertions(+), 49 deletions(-)
 create mode 100755 lib/newlib_tests/shell/tst_res_flags.sh
 create mode 100644 lib/newlib_tests/tst_res_flags.c

-- 
2.43.0



More information about the ltp mailing list