Skip to content

Add query and mock tests

Pavel Begunkov io-uring 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6tests: test the query interfacesrc/include/liburing.h src/include/liburing/io_uring.h src/include/liburing/io_uring/query.h +2 more+368 -01 reply
2/6tests: add t_submit_and_wait_single helpertest/helpers.c test/helpers.h+19 -00 replies
3/6tests: introduce t_iovec_data_length helpertest/helpers.c test/helpers.h test/vec-regbuf.c+14 -40 replies
4/6tests: add t_sqe_prep_cmd helpertest/helpers.h+7 -00 replies
5/6tests: add helper for iov data verificationtest/helpers.c test/helpers.h+47 -00 replies
6/6tests: add mock file based teststest/Makefile test/mock_file.c test/mock_file.h+421 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH liburing 0/6] Add query and mock tests

Also introduces a bunch of test/ helper functions.

Pavel Begunkov (6):
tests: test the query interface
tests: add t_submit_and_wait_single helper
tests: introduce t_iovec_data_length helper
tests: add t_sqe_prep_cmd helper
tests: add helper for iov data verification
tests: add mock file based tests

 src/include/liburing.h                |   1 +
 src/include/liburing/io_uring.h       |   3 +
 src/include/liburing/io_uring/query.h |  41 +++
 test/Makefile                         |   2 +
 test/helpers.c                        |  71 +++++
 test/helpers.h                        |  14 +
 test/mock_file.c                      | 373 ++++++++++++++++++++++++++
 test/mock_file.h                      |  47 ++++
 test/ring-query.c                     | 322 ++++++++++++++++++++++
 test/vec-regbuf.c                     |   6 +-
 10 files changed, 876 insertions(+), 4 deletions(-)
 create mode 100644 src/include/liburing/io_uring/query.h
 create mode 100644 test/mock_file.c
 create mode 100644 test/mock_file.h
 create mode 100644 test/ring-query.c
Signature · 1 line
2.49.0